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

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

Issue 331633002: Revert "Revert "Reland 21774: Generate KeyedLoadGeneric with Hydrogen"" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 CodeStubInterfaceDescriptor* descriptor) { 94 CodeStubInterfaceDescriptor* descriptor) {
95 // x2: feedback vector 95 // x2: feedback vector
96 // x3: call feedback slot 96 // x3: call feedback slot
97 static Register registers[] = { x2, x3 }; 97 static Register registers[] = { x2, x3 };
98 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); 98 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]);
99 descriptor->register_params_ = registers; 99 descriptor->register_params_ = registers;
100 descriptor->deoptimization_handler_ = NULL; 100 descriptor->deoptimization_handler_ = NULL;
101 } 101 }
102 102
103 103
104 void KeyedLoadGenericElementStub::InitializeInterfaceDescriptor(
105 CodeStubInterfaceDescriptor* descriptor) {
106 static Register registers[] = { x1, x0 };
107 descriptor->register_param_count_ = 2;
108 descriptor->register_params_ = registers;
109 descriptor->deoptimization_handler_ =
110 Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry;
111 }
112
113
104 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor( 114 void KeyedLoadFastElementStub::InitializeInterfaceDescriptor(
105 CodeStubInterfaceDescriptor* descriptor) { 115 CodeStubInterfaceDescriptor* descriptor) {
106 // x1: receiver 116 // x1: receiver
107 // x0: key 117 // x0: key
108 static Register registers[] = { x1, x0 }; 118 static Register registers[] = { x1, x0 };
109 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]); 119 descriptor->register_param_count_ = sizeof(registers) / sizeof(registers[0]);
110 descriptor->register_params_ = registers; 120 descriptor->register_params_ = registers;
111 descriptor->deoptimization_handler_ = 121 descriptor->deoptimization_handler_ =
112 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); 122 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure);
113 } 123 }
(...skipping 5422 matching lines...) Expand 10 before | Expand all | Expand 10 after
5536 MemOperand(fp, 6 * kPointerSize), 5546 MemOperand(fp, 6 * kPointerSize),
5537 NULL); 5547 NULL);
5538 } 5548 }
5539 5549
5540 5550
5541 #undef __ 5551 #undef __
5542 5552
5543 } } // namespace v8::internal 5553 } } // namespace v8::internal
5544 5554
5545 #endif // V8_TARGET_ARCH_ARM64 5555 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/code-stubs.h » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698