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/ic/handler-compiler.h" | 5 #include "src/ic/handler-compiler.h" |
6 | 6 |
7 #include "src/field-type.h" | 7 #include "src/field-type.h" |
8 #include "src/ic/call-optimization.h" | 8 #include "src/ic/call-optimization.h" |
9 #include "src/ic/ic-inl.h" | 9 #include "src/ic/ic-inl.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 Map::UpdateCodeCache(stub_holder_map, cache_name, handler); | 74 Map::UpdateCodeCache(stub_holder_map, cache_name, handler); |
75 return handler; | 75 return handler; |
76 } | 76 } |
77 | 77 |
78 | 78 |
79 Handle<Code> PropertyHandlerCompiler::GetCode(Code::Kind kind, | 79 Handle<Code> PropertyHandlerCompiler::GetCode(Code::Kind kind, |
80 Code::StubType type, | 80 Code::StubType type, |
81 Handle<Name> name) { | 81 Handle<Name> name) { |
82 Code::Flags flags = Code::ComputeHandlerFlags(kind, type, cache_holder()); | 82 Code::Flags flags = Code::ComputeHandlerFlags(kind, type, cache_holder()); |
83 Handle<Code> code = GetCodeWithFlags(flags, name); | 83 Handle<Code> code = GetCodeWithFlags(flags, name); |
84 PROFILE(isolate(), CodeCreateEvent(Logger::HANDLER_TAG, *code, *name)); | 84 PROFILE(isolate(), CodeCreateEvent(Logger::HANDLER_TAG, |
| 85 AbstractCode::cast(*code), *name)); |
85 #ifdef DEBUG | 86 #ifdef DEBUG |
86 code->VerifyEmbeddedObjects(); | 87 code->VerifyEmbeddedObjects(); |
87 #endif | 88 #endif |
88 return code; | 89 return code; |
89 } | 90 } |
90 | 91 |
91 | 92 |
92 #define __ ACCESS_MASM(masm()) | 93 #define __ ACCESS_MASM(masm()) |
93 | 94 |
94 | 95 |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 LoadICState state = LoadICState(kNoExtraICState); | 595 LoadICState state = LoadICState(kNoExtraICState); |
595 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); | 596 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); |
596 } | 597 } |
597 } | 598 } |
598 | 599 |
599 handlers->Add(cached_stub); | 600 handlers->Add(cached_stub); |
600 } | 601 } |
601 } | 602 } |
602 } // namespace internal | 603 } // namespace internal |
603 } // namespace v8 | 604 } // namespace v8 |
OLD | NEW |