| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_CODEGEN_H_ | 5 #ifndef V8_CODEGEN_H_ |
| 6 #define V8_CODEGEN_H_ | 6 #define V8_CODEGEN_H_ |
| 7 | 7 |
| 8 #include "code-stubs.h" | 8 #include "code-stubs.h" |
| 9 #include "runtime.h" | 9 #include "runtime.h" |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 static void MakeCodePrologue(CompilationInfo* info, const char* kind); | 72 static void MakeCodePrologue(CompilationInfo* info, const char* kind); |
| 73 | 73 |
| 74 // Allocate and install the code. | 74 // Allocate and install the code. |
| 75 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, | 75 static Handle<Code> MakeCodeEpilogue(MacroAssembler* masm, |
| 76 Code::Flags flags, | 76 Code::Flags flags, |
| 77 CompilationInfo* info); | 77 CompilationInfo* info); |
| 78 | 78 |
| 79 // Print the code after compiling it. | 79 // Print the code after compiling it. |
| 80 static void PrintCode(Handle<Code> code, CompilationInfo* info); | 80 static void PrintCode(Handle<Code> code, CompilationInfo* info); |
| 81 | 81 |
| 82 static bool ShouldGenerateLog(Isolate* isolate, Expression* type); | |
| 83 | |
| 84 static bool RecordPositions(MacroAssembler* masm, | 82 static bool RecordPositions(MacroAssembler* masm, |
| 85 int pos, | 83 int pos, |
| 86 bool right_here = false); | 84 bool right_here = false); |
| 87 | 85 |
| 88 private: | 86 private: |
| 89 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 87 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 | 90 |
| 93 // Results of the library implementation of transcendental functions may differ | 91 // Results of the library implementation of transcendental functions may differ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 116 private: | 114 private: |
| 117 DISALLOW_COPY_AND_ASSIGN(ElementsTransitionGenerator); | 115 DISALLOW_COPY_AND_ASSIGN(ElementsTransitionGenerator); |
| 118 }; | 116 }; |
| 119 | 117 |
| 120 static const int kNumberDictionaryProbes = 4; | 118 static const int kNumberDictionaryProbes = 4; |
| 121 | 119 |
| 122 | 120 |
| 123 } } // namespace v8::internal | 121 } } // namespace v8::internal |
| 124 | 122 |
| 125 #endif // V8_CODEGEN_H_ | 123 #endif // V8_CODEGEN_H_ |
| OLD | NEW |