OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |