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

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

Issue 2061623002: Introduce JIT code events dispatcher for the isolate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebaseline 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/heap/mark-compact.cc ('k') | src/interpreter/interpreter.cc » ('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/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"
11 #include "src/isolate-inl.h" 11 #include "src/isolate-inl.h"
12 #include "src/profiler/cpu-profiler.h"
13 12
14 namespace v8 { 13 namespace v8 {
15 namespace internal { 14 namespace internal {
16 15
17 Handle<Code> PropertyHandlerCompiler::Find(Handle<Name> name, 16 Handle<Code> PropertyHandlerCompiler::Find(Handle<Name> name,
18 Handle<Map> stub_holder, 17 Handle<Map> stub_holder,
19 Code::Kind kind, 18 Code::Kind kind,
20 CacheHolderFlag cache_holder) { 19 CacheHolderFlag cache_holder) {
21 Code::Flags flags = Code::ComputeHandlerFlags(kind, cache_holder); 20 Code::Flags flags = Code::ComputeHandlerFlags(kind, cache_holder);
22 Code* code = stub_holder->LookupInCodeCache(*name, flags); 21 Code* code = stub_holder->LookupInCodeCache(*name, flags);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 handler = compiler.CompileLoadNonexistent(cache_name); 71 handler = compiler.CompileLoadNonexistent(cache_name);
73 Map::UpdateCodeCache(stub_holder_map, cache_name, handler); 72 Map::UpdateCodeCache(stub_holder_map, cache_name, handler);
74 return handler; 73 return handler;
75 } 74 }
76 75
77 76
78 Handle<Code> PropertyHandlerCompiler::GetCode(Code::Kind kind, 77 Handle<Code> PropertyHandlerCompiler::GetCode(Code::Kind kind,
79 Handle<Name> name) { 78 Handle<Name> name) {
80 Code::Flags flags = Code::ComputeHandlerFlags(kind, cache_holder()); 79 Code::Flags flags = Code::ComputeHandlerFlags(kind, cache_holder());
81 Handle<Code> code = GetCodeWithFlags(flags, name); 80 Handle<Code> code = GetCodeWithFlags(flags, name);
82 PROFILE(isolate(), CodeCreateEvent(Logger::HANDLER_TAG, 81 PROFILE(isolate(), CodeCreateEvent(CodeEventListener::HANDLER_TAG,
83 AbstractCode::cast(*code), *name)); 82 AbstractCode::cast(*code), *name));
84 #ifdef DEBUG 83 #ifdef DEBUG
85 code->VerifyEmbeddedObjects(); 84 code->VerifyEmbeddedObjects();
86 #endif 85 #endif
87 return code; 86 return code;
88 } 87 }
89 88
90 89
91 #define __ ACCESS_MASM(masm()) 90 #define __ ACCESS_MASM(masm())
92 91
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 LoadICState state = LoadICState(kNoExtraICState); 618 LoadICState state = LoadICState(kNoExtraICState);
620 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode(); 619 cached_stub = LoadDictionaryElementStub(isolate(), state).GetCode();
621 } 620 }
622 } 621 }
623 622
624 handlers->Add(cached_stub); 623 handlers->Add(cached_stub);
625 } 624 }
626 } 625 }
627 } // namespace internal 626 } // namespace internal
628 } // namespace v8 627 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698