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

Side by Side Diff: src/builtins.cc

Issue 1912633002: [ic] Split LoadIC into LoadGlobalIC and LoadIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 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
« no previous file with comments | « src/builtins.h ('k') | src/code-factory.h » ('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/builtins.h" 5 #include "src/builtins.h"
6 6
7 #include "src/api-arguments.h" 7 #include "src/api-arguments.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/base/ieee754.h" 10 #include "src/base/ieee754.h"
(...skipping 5348 matching lines...) Expand 10 before | Expand all | Expand 10 after
5359 Node* receiver = assembler->Parameter(0); 5359 Node* receiver = assembler->Parameter(0);
5360 Node* name = assembler->Parameter(1); 5360 Node* name = assembler->Parameter(1);
5361 Node* slot = assembler->Parameter(2); 5361 Node* slot = assembler->Parameter(2);
5362 Node* vector = assembler->Parameter(3); 5362 Node* vector = assembler->Parameter(3);
5363 Node* context = assembler->Parameter(4); 5363 Node* context = assembler->Parameter(4);
5364 5364
5365 assembler->TailCallRuntime(Runtime::kLoadIC_Miss, context, receiver, name, 5365 assembler->TailCallRuntime(Runtime::kLoadIC_Miss, context, receiver, name,
5366 slot, vector); 5366 slot, vector);
5367 } 5367 }
5368 5368
5369 void Generate_LoadGlobalIC_Miss(CodeStubAssembler* assembler) {
5370 typedef compiler::Node Node;
5371
5372 Node* name = assembler->Parameter(0);
5373 Node* slot = assembler->Parameter(1);
5374 Node* vector = assembler->Parameter(2);
5375 Node* context = assembler->Parameter(3);
5376
5377 assembler->TailCallRuntime(Runtime::kLoadGlobalIC_Miss, context, name, slot,
5378 vector);
5379 }
5380
5369 void Generate_LoadIC_Normal(MacroAssembler* masm) { 5381 void Generate_LoadIC_Normal(MacroAssembler* masm) {
5370 LoadIC::GenerateNormal(masm); 5382 LoadIC::GenerateNormal(masm);
5371 } 5383 }
5372 5384
5373 void Generate_LoadIC_Getter_ForDeopt(MacroAssembler* masm) { 5385 void Generate_LoadIC_Getter_ForDeopt(MacroAssembler* masm) {
5374 NamedLoadHandlerCompiler::GenerateLoadViaGetterForDeopt(masm); 5386 NamedLoadHandlerCompiler::GenerateLoadViaGetterForDeopt(masm);
5375 } 5387 }
5376 5388
5377 void Generate_LoadIC_Slow(CodeStubAssembler* assembler) { 5389 void Generate_LoadIC_Slow(CodeStubAssembler* assembler) {
5378 typedef compiler::Node Node; 5390 typedef compiler::Node Node;
5379 5391
5380 Node* receiver = assembler->Parameter(0); 5392 Node* receiver = assembler->Parameter(0);
5381 Node* name = assembler->Parameter(1); 5393 Node* name = assembler->Parameter(1);
5382 // Node* slot = assembler->Parameter(2); 5394 // Node* slot = assembler->Parameter(2);
5383 // Node* vector = assembler->Parameter(3); 5395 // Node* vector = assembler->Parameter(3);
5384 Node* context = assembler->Parameter(4); 5396 Node* context = assembler->Parameter(4);
5385 5397
5386 assembler->TailCallRuntime(Runtime::kGetProperty, context, receiver, name); 5398 assembler->TailCallRuntime(Runtime::kGetProperty, context, receiver, name);
5387 } 5399 }
5388 5400
5401 void Generate_LoadGlobalIC_Slow(CodeStubAssembler* assembler) {
5402 typedef compiler::Node Node;
5403
5404 Node* name = assembler->Parameter(0);
5405 // Node* slot = assembler->Parameter(1);
5406 // Node* vector = assembler->Parameter(2);
5407 Node* context = assembler->Parameter(3);
5408
5409 assembler->TailCallRuntime(Runtime::kGetGlobal, context, name);
5410 }
5411
5389 void Generate_KeyedLoadIC_Slow(MacroAssembler* masm) { 5412 void Generate_KeyedLoadIC_Slow(MacroAssembler* masm) {
5390 KeyedLoadIC::GenerateRuntimeGetProperty(masm); 5413 KeyedLoadIC::GenerateRuntimeGetProperty(masm);
5391 } 5414 }
5392 5415
5393 void Generate_KeyedLoadIC_Miss(MacroAssembler* masm) { 5416 void Generate_KeyedLoadIC_Miss(MacroAssembler* masm) {
5394 KeyedLoadIC::GenerateMiss(masm); 5417 KeyedLoadIC::GenerateMiss(masm);
5395 } 5418 }
5396 5419
5397 void Generate_KeyedLoadIC_Megamorphic(MacroAssembler* masm) { 5420 void Generate_KeyedLoadIC_Megamorphic(MacroAssembler* masm) {
5398 KeyedLoadIC::GenerateMegamorphic(masm); 5421 KeyedLoadIC::GenerateMegamorphic(masm);
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
6005 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 6028 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
6006 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 6029 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
6007 #undef DEFINE_BUILTIN_ACCESSOR_C 6030 #undef DEFINE_BUILTIN_ACCESSOR_C
6008 #undef DEFINE_BUILTIN_ACCESSOR_A 6031 #undef DEFINE_BUILTIN_ACCESSOR_A
6009 #undef DEFINE_BUILTIN_ACCESSOR_T 6032 #undef DEFINE_BUILTIN_ACCESSOR_T
6010 #undef DEFINE_BUILTIN_ACCESSOR_S 6033 #undef DEFINE_BUILTIN_ACCESSOR_S
6011 #undef DEFINE_BUILTIN_ACCESSOR_H 6034 #undef DEFINE_BUILTIN_ACCESSOR_H
6012 6035
6013 } // namespace internal 6036 } // namespace internal
6014 } // namespace v8 6037 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698