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/ic/ic-inl.h" | 7 #include "src/ic/ic-inl.h" |
8 #include "src/ic/ic-compiler.h" | 8 #include "src/ic/ic-compiler.h" |
9 | 9 |
10 | 10 |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 Handle<Code> code = GetCodeWithFlags(flags, "CompileStorePreMonomorphic"); | 380 Handle<Code> code = GetCodeWithFlags(flags, "CompileStorePreMonomorphic"); |
381 PROFILE(isolate(), | 381 PROFILE(isolate(), |
382 CodeCreateEvent(Logger::STORE_PREMONOMORPHIC_TAG, *code, 0)); | 382 CodeCreateEvent(Logger::STORE_PREMONOMORPHIC_TAG, *code, 0)); |
383 return code; | 383 return code; |
384 } | 384 } |
385 | 385 |
386 | 386 |
387 Handle<Code> PropertyICCompiler::CompileStoreGeneric(Code::Flags flags) { | 387 Handle<Code> PropertyICCompiler::CompileStoreGeneric(Code::Flags flags) { |
388 ExtraICState extra_state = Code::ExtractExtraICStateFromFlags(flags); | 388 ExtraICState extra_state = Code::ExtractExtraICStateFromFlags(flags); |
389 StrictMode strict_mode = StoreIC::GetStrictMode(extra_state); | 389 StrictMode strict_mode = StoreIC::GetStrictMode(extra_state); |
390 StoreIC::GenerateRuntimeSetProperty(masm(), strict_mode); | 390 GenerateRuntimeSetProperty(masm(), strict_mode); |
391 Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreGeneric"); | 391 Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreGeneric"); |
392 PROFILE(isolate(), CodeCreateEvent(Logger::STORE_GENERIC_TAG, *code, 0)); | 392 PROFILE(isolate(), CodeCreateEvent(Logger::STORE_GENERIC_TAG, *code, 0)); |
393 return code; | 393 return code; |
394 } | 394 } |
395 | 395 |
396 | 396 |
397 Handle<Code> PropertyICCompiler::CompileStoreMegamorphic(Code::Flags flags) { | 397 Handle<Code> PropertyICCompiler::CompileStoreMegamorphic(Code::Flags flags) { |
398 StoreIC::GenerateMegamorphic(masm()); | 398 StoreIC::GenerateMegamorphic(masm()); |
399 Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreMegamorphic"); | 399 Handle<Code> code = GetCodeWithFlags(flags, "CompileStoreMegamorphic"); |
400 PROFILE(isolate(), CodeCreateEvent(Logger::STORE_MEGAMORPHIC_TAG, *code, 0)); | 400 PROFILE(isolate(), CodeCreateEvent(Logger::STORE_MEGAMORPHIC_TAG, *code, 0)); |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 if (!signature->receiver()->IsUndefined()) { | 974 if (!signature->receiver()->IsUndefined()) { |
975 expected_receiver_type_ = Handle<FunctionTemplateInfo>( | 975 expected_receiver_type_ = Handle<FunctionTemplateInfo>( |
976 FunctionTemplateInfo::cast(signature->receiver())); | 976 FunctionTemplateInfo::cast(signature->receiver())); |
977 } | 977 } |
978 } | 978 } |
979 | 979 |
980 is_simple_api_call_ = true; | 980 is_simple_api_call_ = true; |
981 } | 981 } |
982 } | 982 } |
983 } // namespace v8::internal | 983 } // namespace v8::internal |
OLD | NEW |