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/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/arm64/macro-assembler-arm64-inl.h" | 8 #include "src/arm64/macro-assembler-arm64-inl.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/counters.h" | 10 #include "src/counters.h" |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 __ SmiTag(x2); | 291 __ SmiTag(x2); |
292 __ EnterBuiltinFrame(cp, x1, x2); | 292 __ EnterBuiltinFrame(cp, x1, x2); |
293 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); | 293 __ Call(masm->isolate()->builtins()->ToString(), RelocInfo::CODE_TARGET); |
294 __ LeaveBuiltinFrame(cp, x1, x2); | 294 __ LeaveBuiltinFrame(cp, x1, x2); |
295 __ SmiUntag(x2); | 295 __ SmiUntag(x2); |
296 } | 296 } |
297 __ b(&drop_frame_and_ret); | 297 __ b(&drop_frame_and_ret); |
298 | 298 |
299 // 3b. Convert symbol in x0 to a string. | 299 // 3b. Convert symbol in x0 to a string. |
300 __ Bind(&symbol_descriptive_string); | 300 __ Bind(&symbol_descriptive_string); |
301 { | 301 __ Ldr(x0, FieldMemOperand(x0, Symbol::kDescriptiveStringOffset)); |
302 __ Drop(x2); | 302 // Fall through. |
303 __ Drop(1); | |
304 __ Push(x0); | |
305 __ TailCallRuntime(Runtime::kSymbolDescriptiveString); | |
306 } | |
307 | 303 |
308 __ bind(&drop_frame_and_ret); | 304 __ bind(&drop_frame_and_ret); |
309 { | 305 { |
310 __ Drop(x2); | 306 __ Drop(x2); |
311 __ Drop(1); | 307 __ Drop(1); |
312 __ Ret(); | 308 __ Ret(); |
313 } | 309 } |
314 } | 310 } |
315 | 311 |
316 // static | 312 // static |
(...skipping 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3214 // Now jump to the instructions of the returned code object. | 3210 // Now jump to the instructions of the returned code object. |
3215 __ Jump(x8); | 3211 __ Jump(x8); |
3216 } | 3212 } |
3217 | 3213 |
3218 #undef __ | 3214 #undef __ |
3219 | 3215 |
3220 } // namespace internal | 3216 } // namespace internal |
3221 } // namespace v8 | 3217 } // namespace v8 |
3222 | 3218 |
3223 #endif // V8_TARGET_ARCH_ARM | 3219 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |