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

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: REBASE. 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
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.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 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 data->Initialize(arraysize(registers), registers, NULL); 66 data->Initialize(arraysize(registers), registers, NULL);
67 } 67 }
68 68
69 69
70 void FastNewContextDescriptor::Initialize(CallInterfaceDescriptorData* data) { 70 void FastNewContextDescriptor::Initialize(CallInterfaceDescriptorData* data) {
71 Register registers[] = {rsi, rdi}; 71 Register registers[] = {rsi, rdi};
72 data->Initialize(arraysize(registers), registers, NULL); 72 data->Initialize(arraysize(registers), registers, NULL);
73 } 73 }
74 74
75 75
76 void TypeofDescriptor::Initialize(CallInterfaceDescriptorData* data) {
77 Register registers[] = {rsi, rbx};
78 data->Initialize(arraysize(registers), registers, NULL);
79 }
80
81
76 void ToNumberDescriptor::Initialize(CallInterfaceDescriptorData* data) { 82 void ToNumberDescriptor::Initialize(CallInterfaceDescriptorData* data) {
77 // ToNumberStub invokes a function, and therefore needs a context. 83 // ToNumberStub invokes a function, and therefore needs a context.
78 Register registers[] = {rsi, rax}; 84 Register registers[] = {rsi, rax};
79 data->Initialize(arraysize(registers), registers, NULL); 85 data->Initialize(arraysize(registers), registers, NULL);
80 } 86 }
81 87
82 88
83 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) { 89 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) {
84 Register registers[] = {rsi, rax}; 90 Register registers[] = {rsi, rax};
85 data->Initialize(arraysize(registers), registers, NULL); 91 data->Initialize(arraysize(registers), registers, NULL);
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 Representation::Tagged(), // call_data 368 Representation::Tagged(), // call_data
363 Representation::Tagged(), // holder 369 Representation::Tagged(), // holder
364 Representation::External(), // api_function_address 370 Representation::External(), // api_function_address
365 }; 371 };
366 data->Initialize(arraysize(registers), registers, representations); 372 data->Initialize(arraysize(registers), registers, representations);
367 } 373 }
368 } 374 }
369 } // namespace v8::internal 375 } // namespace v8::internal
370 376
371 #endif // V8_TARGET_ARCH_X64 377 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698