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_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2460 | 2460 |
2461 | 2461 |
2462 void StringCharFromCodeGenerator::GenerateSlow( | 2462 void StringCharFromCodeGenerator::GenerateSlow( |
2463 MacroAssembler* masm, | 2463 MacroAssembler* masm, |
2464 const RuntimeCallHelper& call_helper) { | 2464 const RuntimeCallHelper& call_helper) { |
2465 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); | 2465 __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); |
2466 | 2466 |
2467 __ bind(&slow_case_); | 2467 __ bind(&slow_case_); |
2468 call_helper.BeforeCall(masm); | 2468 call_helper.BeforeCall(masm); |
2469 __ push(code_); | 2469 __ push(code_); |
2470 __ CallRuntime(Runtime::kCharFromCode, 1); | 2470 __ CallRuntime(Runtime::kStringCharFromCode, 1); |
2471 if (!result_.is(eax)) { | 2471 if (!result_.is(eax)) { |
2472 __ mov(result_, eax); | 2472 __ mov(result_, eax); |
2473 } | 2473 } |
2474 call_helper.AfterCall(masm); | 2474 call_helper.AfterCall(masm); |
2475 __ jmp(&exit_); | 2475 __ jmp(&exit_); |
2476 | 2476 |
2477 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); | 2477 __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
2478 } | 2478 } |
2479 | 2479 |
2480 | 2480 |
(...skipping 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5425 Operand(ebp, 7 * kPointerSize), NULL); | 5425 Operand(ebp, 7 * kPointerSize), NULL); |
5426 } | 5426 } |
5427 | 5427 |
5428 | 5428 |
5429 #undef __ | 5429 #undef __ |
5430 | 5430 |
5431 } // namespace internal | 5431 } // namespace internal |
5432 } // namespace v8 | 5432 } // namespace v8 |
5433 | 5433 |
5434 #endif // V8_TARGET_ARCH_X87 | 5434 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |