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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 1417743007: [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/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 5409 matching lines...) Expand 10 before | Expand all | Expand 10 after
5420 Register char_code = ToRegister(instr->char_code()); 5420 Register char_code = ToRegister(instr->char_code());
5421 Register result = ToRegister(instr->result()); 5421 Register result = ToRegister(instr->result());
5422 5422
5423 // TODO(3095996): Get rid of this. For now, we need to make the 5423 // TODO(3095996): Get rid of this. For now, we need to make the
5424 // result register contain a valid pointer because it is already 5424 // result register contain a valid pointer because it is already
5425 // contained in the register pointer map. 5425 // contained in the register pointer map.
5426 __ Mov(result, 0); 5426 __ Mov(result, 0);
5427 5427
5428 PushSafepointRegistersScope scope(this); 5428 PushSafepointRegistersScope scope(this);
5429 __ SmiTagAndPush(char_code); 5429 __ SmiTagAndPush(char_code);
5430 CallRuntimeFromDeferred(Runtime::kCharFromCode, 1, instr, instr->context()); 5430 CallRuntimeFromDeferred(Runtime::kStringCharFromCode, 1, instr,
5431 instr->context());
5431 __ StoreToSafepointRegisterSlot(x0, result); 5432 __ StoreToSafepointRegisterSlot(x0, result);
5432 } 5433 }
5433 5434
5434 5435
5435 void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) { 5436 void LCodeGen::DoStringCompareAndBranch(LStringCompareAndBranch* instr) {
5436 DCHECK(ToRegister(instr->context()).is(cp)); 5437 DCHECK(ToRegister(instr->context()).is(cp));
5437 DCHECK(ToRegister(instr->left()).is(x1)); 5438 DCHECK(ToRegister(instr->left()).is(x1));
5438 DCHECK(ToRegister(instr->right()).is(x0)); 5439 DCHECK(ToRegister(instr->right()).is(x0));
5439 5440
5440 Handle<Code> code = CodeFactory::StringCompare(isolate()).code(); 5441 Handle<Code> code = CodeFactory::StringCompare(isolate()).code();
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
5948 Handle<ScopeInfo> scope_info = instr->scope_info(); 5949 Handle<ScopeInfo> scope_info = instr->scope_info();
5949 __ Push(scope_info); 5950 __ Push(scope_info);
5950 __ Push(ToRegister(instr->function())); 5951 __ Push(ToRegister(instr->function()));
5951 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5952 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5952 RecordSafepoint(Safepoint::kNoLazyDeopt); 5953 RecordSafepoint(Safepoint::kNoLazyDeopt);
5953 } 5954 }
5954 5955
5955 5956
5956 } // namespace internal 5957 } // namespace internal
5957 } // namespace v8 5958 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698