Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: src/x87/code-stubs-x87.cc

Issue 1432063002: X87: [runtime] Drop redundant %CharFromCode runtime entry. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698