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

Side by Side Diff: src/code-stubs.cc

Issue 387533003: Remove AddCode and RemoveCode GDB JIT entry hooks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: One miro fix. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/builtins.cc ('k') | src/gdb-jit.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 109 }
110 return false; 110 return false;
111 } 111 }
112 112
113 113
114 void CodeStub::RecordCodeGeneration(Handle<Code> code) { 114 void CodeStub::RecordCodeGeneration(Handle<Code> code) {
115 IC::RegisterWeakMapDependency(code); 115 IC::RegisterWeakMapDependency(code);
116 OStringStream os; 116 OStringStream os;
117 os << *this; 117 os << *this;
118 PROFILE(isolate(), CodeCreateEvent(Logger::STUB_TAG, *code, os.c_str())); 118 PROFILE(isolate(), CodeCreateEvent(Logger::STUB_TAG, *code, os.c_str()));
119 GDBJIT(AddCode(GDBJITInterface::STUB, os.c_str(), *code));
120 Counters* counters = isolate()->counters(); 119 Counters* counters = isolate()->counters();
121 counters->total_stubs_code_size()->Increment(code->instruction_size()); 120 counters->total_stubs_code_size()->Increment(code->instruction_size());
122 } 121 }
123 122
124 123
125 Code::Kind CodeStub::GetCodeKind() const { 124 Code::Kind CodeStub::GetCodeKind() const {
126 return Code::STUB; 125 return Code::STUB;
127 } 126 }
128 127
129 128
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 InstallDescriptor(isolate, &stub3); 961 InstallDescriptor(isolate, &stub3);
963 } 962 }
964 963
965 InternalArrayConstructorStub::InternalArrayConstructorStub( 964 InternalArrayConstructorStub::InternalArrayConstructorStub(
966 Isolate* isolate) : PlatformCodeStub(isolate) { 965 Isolate* isolate) : PlatformCodeStub(isolate) {
967 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 966 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
968 } 967 }
969 968
970 969
971 } } // namespace v8::internal 970 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/gdb-jit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698