OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // frames-arm.h for its layout. | 103 // frames-arm.h for its layout. |
104 void FullCodeGenerator::Generate() { | 104 void FullCodeGenerator::Generate() { |
105 CompilationInfo* info = info_; | 105 CompilationInfo* info = info_; |
106 profiling_counter_ = isolate()->factory()->NewCell( | 106 profiling_counter_ = isolate()->factory()->NewCell( |
107 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); | 107 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); |
108 SetFunctionPosition(literal()); | 108 SetFunctionPosition(literal()); |
109 Comment cmnt(masm_, "[ Function compiled by full code generator"); | 109 Comment cmnt(masm_, "[ Function compiled by full code generator"); |
110 | 110 |
111 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 111 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
112 | 112 |
113 #ifdef DEBUG | |
114 if (strlen(FLAG_stop_at) > 0 && | |
115 info->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
116 __ Debug("stop-at", __LINE__, BREAK); | |
117 } | |
118 #endif | |
119 | |
120 if (FLAG_debug_code && info->ExpectsJSReceiverAsReceiver()) { | 113 if (FLAG_debug_code && info->ExpectsJSReceiverAsReceiver()) { |
121 int receiver_offset = info->scope()->num_parameters() * kXRegSize; | 114 int receiver_offset = info->scope()->num_parameters() * kXRegSize; |
122 __ Peek(x10, receiver_offset); | 115 __ Peek(x10, receiver_offset); |
123 __ AssertNotSmi(x10); | 116 __ AssertNotSmi(x10); |
124 __ CompareObjectType(x10, x10, x11, FIRST_JS_RECEIVER_TYPE); | 117 __ CompareObjectType(x10, x10, x11, FIRST_JS_RECEIVER_TYPE); |
125 __ Assert(ge, kSloppyFunctionExpectsJSReceiverReceiver); | 118 __ Assert(ge, kSloppyFunctionExpectsJSReceiverReceiver); |
126 } | 119 } |
127 | 120 |
128 // Open a frame scope to indicate that there is a frame on the stack. | 121 // Open a frame scope to indicate that there is a frame on the stack. |
129 // The MANUAL indicates that the scope shouldn't actually generate code | 122 // The MANUAL indicates that the scope shouldn't actually generate code |
(...skipping 4600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4730 } | 4723 } |
4731 | 4724 |
4732 return INTERRUPT; | 4725 return INTERRUPT; |
4733 } | 4726 } |
4734 | 4727 |
4735 | 4728 |
4736 } // namespace internal | 4729 } // namespace internal |
4737 } // namespace v8 | 4730 } // namespace v8 |
4738 | 4731 |
4739 #endif // V8_TARGET_ARCH_ARM64 | 4732 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |