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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // frames-mips.h for its layout. | 111 // frames-mips.h for its layout. |
112 void FullCodeGenerator::Generate() { | 112 void FullCodeGenerator::Generate() { |
113 CompilationInfo* info = info_; | 113 CompilationInfo* info = info_; |
114 profiling_counter_ = isolate()->factory()->NewCell( | 114 profiling_counter_ = isolate()->factory()->NewCell( |
115 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); | 115 Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); |
116 SetFunctionPosition(literal()); | 116 SetFunctionPosition(literal()); |
117 Comment cmnt(masm_, "[ function compiled by full code generator"); | 117 Comment cmnt(masm_, "[ function compiled by full code generator"); |
118 | 118 |
119 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 119 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
120 | 120 |
121 #ifdef DEBUG | |
122 if (strlen(FLAG_stop_at) > 0 && | |
123 info->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
124 __ stop("stop-at"); | |
125 } | |
126 #endif | |
127 | |
128 if (FLAG_debug_code && info->ExpectsJSReceiverAsReceiver()) { | 121 if (FLAG_debug_code && info->ExpectsJSReceiverAsReceiver()) { |
129 int receiver_offset = info->scope()->num_parameters() * kPointerSize; | 122 int receiver_offset = info->scope()->num_parameters() * kPointerSize; |
130 __ ld(a2, MemOperand(sp, receiver_offset)); | 123 __ ld(a2, MemOperand(sp, receiver_offset)); |
131 __ AssertNotSmi(a2); | 124 __ AssertNotSmi(a2); |
132 __ GetObjectType(a2, a2, a2); | 125 __ GetObjectType(a2, a2, a2); |
133 __ Check(ge, kSloppyFunctionExpectsJSReceiverReceiver, a2, | 126 __ Check(ge, kSloppyFunctionExpectsJSReceiverReceiver, a2, |
134 Operand(FIRST_JS_RECEIVER_TYPE)); | 127 Operand(FIRST_JS_RECEIVER_TYPE)); |
135 } | 128 } |
136 | 129 |
137 // Open a frame scope to indicate that there is a frame on the stack. The | 130 // Open a frame scope to indicate that there is a frame on the stack. The |
(...skipping 4570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4708 reinterpret_cast<uint64_t>( | 4701 reinterpret_cast<uint64_t>( |
4709 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4702 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4710 return OSR_AFTER_STACK_CHECK; | 4703 return OSR_AFTER_STACK_CHECK; |
4711 } | 4704 } |
4712 | 4705 |
4713 | 4706 |
4714 } // namespace internal | 4707 } // namespace internal |
4715 } // namespace v8 | 4708 } // namespace v8 |
4716 | 4709 |
4717 #endif // V8_TARGET_ARCH_MIPS64 | 4710 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |