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

Side by Side Diff: src/ic/ic-compiler.cc

Issue 1151253004: VectorICs: Create a StoreICState to more easily create matching code stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Dumb compile error :P. 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/ic/ic.cc ('k') | src/ic/ic-inl.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/cpu-profiler.h" 7 #include "src/cpu-profiler.h"
8 #include "src/ic/handler-compiler.h" 8 #include "src/ic/handler-compiler.h"
9 #include "src/ic/ic-inl.h" 9 #include "src/ic/ic-inl.h"
10 #include "src/ic/ic-compiler.h" 10 #include "src/ic/ic-compiler.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 StoreIC::GeneratePreMonomorphic(masm()); 301 StoreIC::GeneratePreMonomorphic(masm());
302 Handle<Code> code = GetCodeWithFlags(flags, "CompileStorePreMonomorphic"); 302 Handle<Code> code = GetCodeWithFlags(flags, "CompileStorePreMonomorphic");
303 PROFILE(isolate(), 303 PROFILE(isolate(),
304 CodeCreateEvent(Logger::STORE_PREMONOMORPHIC_TAG, *code, 0)); 304 CodeCreateEvent(Logger::STORE_PREMONOMORPHIC_TAG, *code, 0));
305 return code; 305 return code;
306 } 306 }
307 307
308 308
309 Handle<Code> PropertyICCompiler::CompileStoreGeneric(Code::Flags flags) { 309 Handle<Code> PropertyICCompiler::CompileStoreGeneric(Code::Flags flags) {
310 ExtraICState extra_state = Code::ExtractExtraICStateFromFlags(flags); 310 ExtraICState extra_state = Code::ExtractExtraICStateFromFlags(flags);
311 LanguageMode language_mode = StoreIC::GetLanguageMode(extra_state); 311 LanguageMode language_mode = StoreICState::GetLanguageMode(extra_state);
312 GenerateRuntimeSetProperty(masm(), language_mode); 312 GenerateRuntimeSetProperty(masm(), language_mode);
313 Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreGeneric"); 313 Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreGeneric");
314 PROFILE(isolate(), CodeCreateEvent(Logger::STORE_GENERIC_TAG, *code, 0)); 314 PROFILE(isolate(), CodeCreateEvent(Logger::STORE_GENERIC_TAG, *code, 0));
315 return code; 315 return code;
316 } 316 }
317 317
318 318
319 Handle<Code> PropertyICCompiler::CompileStoreMegamorphic(Code::Flags flags) { 319 Handle<Code> PropertyICCompiler::CompileStoreMegamorphic(Code::Flags flags) {
320 StoreIC::GenerateMegamorphic(masm()); 320 StoreIC::GenerateMegamorphic(masm());
321 Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreMegamorphic"); 321 Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreMegamorphic");
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 410
411 TailCallBuiltin(masm(), Builtins::kKeyedStoreIC_Miss); 411 TailCallBuiltin(masm(), Builtins::kKeyedStoreIC_Miss);
412 412
413 return GetCode(kind(), Code::NORMAL, factory()->empty_string()); 413 return GetCode(kind(), Code::NORMAL, factory()->empty_string());
414 } 414 }
415 415
416 416
417 #undef __ 417 #undef __
418 } 418 }
419 } // namespace v8::internal 419 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/ic-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698