Unreviewed. Try to fix the cloop build.
authorsbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Dec 2016 20:55:23 +0000 (20:55 +0000)
committersbarati@apple.com <sbarati@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 12 Dec 2016 20:55:23 +0000 (20:55 +0000)
* interpreter/StackVisitor.cpp:
(JSC::StackVisitor::Frame::calleeSaveRegisters):
* interpreter/StackVisitor.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@209722 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/interpreter/StackVisitor.cpp
Source/JavaScriptCore/interpreter/StackVisitor.h

index 68ebb2b..3a91169 100644 (file)
@@ -1,3 +1,11 @@
+2016-12-12  Saam Barati  <sbarati@apple.com>
+
+        Unreviewed. Try to fix the cloop build.
+
+        * interpreter/StackVisitor.cpp:
+        (JSC::StackVisitor::Frame::calleeSaveRegisters):
+        * interpreter/StackVisitor.h:
+
 2016-12-12  Michael Saboff  <msaboff@apple.com>
 
         FTL: Dumping disassembly requires that code origin is set when making polymorphic tail calls.
index 2737b3c..2276bb9 100644 (file)
@@ -250,6 +250,8 @@ RegisterAtOffsetList* StackVisitor::Frame::calleeSaveRegisters()
     if (isInlinedFrame())
         return nullptr;
 
+#if ENABLE(JIT) && NUMBER_OF_CALLEE_SAVES_REGISTERS > 0
+
 #if ENABLE(WEBASSEMBLY)
     if (isWasmFrame()) {
         if (JSCell* callee = this->callee()) {
@@ -261,11 +263,13 @@ RegisterAtOffsetList* StackVisitor::Frame::calleeSaveRegisters()
 
         return nullptr;
     }
-#endif
+#endif // ENABLE(WEBASSEMBLY)
 
     if (CodeBlock* codeBlock = this->codeBlock())
         return codeBlock->calleeSaveRegisters();
 
+#endif // ENABLE(JIT) && NUMBER_OF_CALLEE_SAVES_REGISTERS > 0
+
     return nullptr;
 }
 
index 0aac906..81a9c7b 100644 (file)
@@ -37,8 +37,8 @@ struct InlineCallFrame;
 
 class CodeBlock;
 class ExecState;
+class JSCell;
 class JSFunction;
-class JSObject;
 class ClonedArguments;
 class Register;
 class RegisterAtOffsetList;