OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |