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

Side by Side Diff: src/x64/interface-descriptors-x64.cc

Issue 1114563003: Optimize the typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips/mips64 errors. Created 5 years, 7 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
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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/interface-descriptors.h" 9 #include "src/interface-descriptors.h"
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 data->Initialize(arraysize(registers), registers, NULL); 61 data->Initialize(arraysize(registers), registers, NULL);
62 } 62 }
63 63
64 64
65 void FastNewContextDescriptor::Initialize(CallInterfaceDescriptorData* data) { 65 void FastNewContextDescriptor::Initialize(CallInterfaceDescriptorData* data) {
66 Register registers[] = {rsi, rdi}; 66 Register registers[] = {rsi, rdi};
67 data->Initialize(arraysize(registers), registers, NULL); 67 data->Initialize(arraysize(registers), registers, NULL);
68 } 68 }
69 69
70 70
71 void TypeofDescriptor::Initialize(CallInterfaceDescriptorData* data) {
72 Register registers[] = {rsi, rbx};
73 data->Initialize(arraysize(registers), registers, NULL);
74 }
75
76
71 void ToNumberDescriptor::Initialize(CallInterfaceDescriptorData* data) { 77 void ToNumberDescriptor::Initialize(CallInterfaceDescriptorData* data) {
72 // ToNumberStub invokes a function, and therefore needs a context. 78 // ToNumberStub invokes a function, and therefore needs a context.
73 Register registers[] = {rsi, rax}; 79 Register registers[] = {rsi, rax};
74 data->Initialize(arraysize(registers), registers, NULL); 80 data->Initialize(arraysize(registers), registers, NULL);
75 } 81 }
76 82
77 83
78 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) { 84 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) {
79 Register registers[] = {rsi, rax}; 85 Register registers[] = {rsi, rax};
80 data->Initialize(arraysize(registers), registers, NULL); 86 data->Initialize(arraysize(registers), registers, NULL);
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 Representation::Tagged(), // call_data 363 Representation::Tagged(), // call_data
358 Representation::Tagged(), // holder 364 Representation::Tagged(), // holder
359 Representation::External(), // api_function_address 365 Representation::External(), // api_function_address
360 }; 366 };
361 data->Initialize(arraysize(registers), registers, representations); 367 data->Initialize(arraysize(registers), registers, representations);
362 } 368 }
363 } 369 }
364 } // namespace v8::internal 370 } // namespace v8::internal
365 371
366 #endif // V8_TARGET_ARCH_X64 372 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698