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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
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 __ stop("stop-at"); | |
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() * kPointerSize; | 114 int receiver_offset = info->scope()->num_parameters() * kPointerSize; |
122 __ ldr(r2, MemOperand(sp, receiver_offset)); | 115 __ ldr(r2, MemOperand(sp, receiver_offset)); |
123 __ AssertNotSmi(r2); | 116 __ AssertNotSmi(r2); |
124 __ CompareObjectType(r2, r2, no_reg, FIRST_JS_RECEIVER_TYPE); | 117 __ CompareObjectType(r2, r2, no_reg, 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. The | 121 // Open a frame scope to indicate that there is a frame on the stack. The |
129 // MANUAL indicates that the scope shouldn't actually generate code to set up | 122 // MANUAL indicates that the scope shouldn't actually generate code to set up |
(...skipping 4619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4749 DCHECK(interrupt_address == | 4742 DCHECK(interrupt_address == |
4750 isolate->builtins()->OsrAfterStackCheck()->entry()); | 4743 isolate->builtins()->OsrAfterStackCheck()->entry()); |
4751 return OSR_AFTER_STACK_CHECK; | 4744 return OSR_AFTER_STACK_CHECK; |
4752 } | 4745 } |
4753 | 4746 |
4754 | 4747 |
4755 } // namespace internal | 4748 } // namespace internal |
4756 } // namespace v8 | 4749 } // namespace v8 |
4757 | 4750 |
4758 #endif // V8_TARGET_ARCH_ARM | 4751 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |