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

Unified Diff: src/a64/code-stubs-a64.cc

Issue 142693005: A64: Synchronize with r16918. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/a64/code-stubs-a64.h ('k') | src/a64/full-codegen-a64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/code-stubs-a64.cc
diff --git a/src/a64/code-stubs-a64.cc b/src/a64/code-stubs-a64.cc
index a168655efb0502f86be938299804dbc2e528827a..dcc8c1167c14400f63bc6b48bf0407b84d1a097b 100644
--- a/src/a64/code-stubs-a64.cc
+++ b/src/a64/code-stubs-a64.cc
@@ -61,6 +61,17 @@ void ToNumberStub::InitializeInterfaceDescriptor(
}
+void NumberToStringStub::InitializeInterfaceDescriptor(
+ Isolate* isolate,
+ CodeStubInterfaceDescriptor* descriptor) {
+ // x0: value
+ static Register registers[] = { x0 };
+ descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]);
+ descriptor->register_params_ = registers;
+ descriptor->deoptimization_handler_ = NULL;
+}
+
+
void FastCloneShallowArrayStub::InitializeInterfaceDescriptor(
Isolate* isolate,
CodeStubInterfaceDescriptor* descriptor) {
@@ -4112,6 +4123,7 @@ void RegExpConstructResultStub::Generate(MacroAssembler* masm) {
static void GenerateRecordCallTarget(MacroAssembler* masm) {
// Cache the called function in a global property cell. Cache states are
// uninitialized, monomorphic (indicated by a JSFunction), and megamorphic.
+ // x0 : number of arguments to the construct function
// x1 : the function to call
// x2 : cache cell for the call target
Label initialize, done, miss, megamorphic, not_array_function;
@@ -4168,6 +4180,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
FrameScope scope(masm, StackFrame::INTERNAL);
CreateAllocationSiteStub create_stub;
+ // Arguments register must be smi-tagged to call out.
__ SmiTag(x0);
__ Push(x0, x1, x2);
@@ -4789,24 +4802,6 @@ void ICCompareStub::GenerateMiss(MacroAssembler* masm) {
}
-void NumberToStringStub::Generate(MacroAssembler* masm) {
- Register result = x0;
- Register object = x1;
- Label runtime;
-
- __ Pop(object);
-
- // Generate code to lookup number in the number string cache.
- __ LookupNumberStringCache(object, result, x2, x3, x4, &runtime);
- __ Ret();
-
- // Handle number to string in the runtime system if not found in the cache.
- __ Bind(&runtime);
- __ Push(object);
- __ TailCallRuntime(Runtime::kNumberToStringSkipCache, 1, 1);
-}
-
-
void StringHelper::GenerateTwoCharacterStringTableProbe(MacroAssembler* masm,
Register c1,
Register c2,
« no previous file with comments | « src/a64/code-stubs-a64.h ('k') | src/a64/full-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698