| 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/assembler-inl.h" | 7 #include "src/assembler-inl.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/counters.h" | 9 #include "src/counters.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 __ SmiTag(r2); | 287 __ SmiTag(r2); |
| 288 __ EnterBuiltinFrame(cp, r1, r2); | 288 __ EnterBuiltinFrame(cp, r1, r2); |
| 289 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); | 289 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); |
| 290 __ LeaveBuiltinFrame(cp, r1, r2); | 290 __ LeaveBuiltinFrame(cp, r1, r2); |
| 291 __ SmiUntag(r2); | 291 __ SmiUntag(r2); |
| 292 } | 292 } |
| 293 __ b(&drop_frame_and_ret); | 293 __ b(&drop_frame_and_ret); |
| 294 | 294 |
| 295 // 3b. Convert symbol in r0 to a string. | 295 // 3b. Convert symbol in r0 to a string. |
| 296 __ bind(&symbol_descriptive_string); | 296 __ bind(&symbol_descriptive_string); |
| 297 { | 297 __ ldr(r0, FieldMemOperand(r0, Symbol::kDescriptiveStringOffset)); |
| 298 __ Drop(r2); | 298 // Fall through. |
| 299 __ Drop(1); | |
| 300 __ Push(r0); | |
| 301 __ TailCallRuntime(Runtime::kSymbolDescriptiveString); | |
| 302 } | |
| 303 | 299 |
| 304 __ bind(&drop_frame_and_ret); | 300 __ bind(&drop_frame_and_ret); |
| 305 { | 301 { |
| 306 __ Drop(r2); | 302 __ Drop(r2); |
| 307 __ Ret(1); | 303 __ Ret(1); |
| 308 } | 304 } |
| 309 } | 305 } |
| 310 | 306 |
| 311 // static | 307 // static |
| 312 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { | 308 void Builtins::Generate_StringConstructor_ConstructStub(MacroAssembler* masm) { |
| (...skipping 2740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3053 } | 3049 } |
| 3054 // Now jump to the instructions of the returned code object. | 3050 // Now jump to the instructions of the returned code object. |
| 3055 __ Jump(r8); | 3051 __ Jump(r8); |
| 3056 } | 3052 } |
| 3057 #undef __ | 3053 #undef __ |
| 3058 | 3054 |
| 3059 } // namespace internal | 3055 } // namespace internal |
| 3060 } // namespace v8 | 3056 } // namespace v8 |
| 3061 | 3057 |
| 3062 #endif // V8_TARGET_ARCH_ARM | 3058 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |