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

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

Issue 1728593002: [Interpreter] Add support for cpu profiler logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 9 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/spaces.cc ('k') | src/ic/ic-compiler.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"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/heap/spaces.cc ('k') | src/ic/ic-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698