| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 StringStream stream(&allocator); | 118 StringStream stream(&allocator); |
| 119 PrintName(&stream); | 119 PrintName(&stream); |
| 120 return stream.ToCString(); | 120 return stream.ToCString(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 | 123 |
| 124 void CodeStub::RecordCodeGeneration(Handle<Code> code) { | 124 void CodeStub::RecordCodeGeneration(Handle<Code> code) { |
| 125 IC::RegisterWeakMapDependency(code); | 125 IC::RegisterWeakMapDependency(code); |
| 126 SmartArrayPointer<const char> name = GetName(); | 126 SmartArrayPointer<const char> name = GetName(); |
| 127 PROFILE(isolate(), CodeCreateEvent(Logger::STUB_TAG, *code, name.get())); | 127 PROFILE(isolate(), CodeCreateEvent(Logger::STUB_TAG, *code, name.get())); |
| 128 isolate()->CodeCreateEvent(*code, name.get()); |
| 128 GDBJIT(AddCode(GDBJITInterface::STUB, name.get(), *code)); | 129 GDBJIT(AddCode(GDBJITInterface::STUB, name.get(), *code)); |
| 129 Counters* counters = isolate()->counters(); | 130 Counters* counters = isolate()->counters(); |
| 130 counters->total_stubs_code_size()->Increment(code->instruction_size()); | 131 counters->total_stubs_code_size()->Increment(code->instruction_size()); |
| 131 } | 132 } |
| 132 | 133 |
| 133 | 134 |
| 134 Code::Kind CodeStub::GetCodeKind() const { | 135 Code::Kind CodeStub::GetCodeKind() const { |
| 135 return Code::STUB; | 136 return Code::STUB; |
| 136 } | 137 } |
| 137 | 138 |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 InstallDescriptor(isolate, &stub3); | 935 InstallDescriptor(isolate, &stub3); |
| 935 } | 936 } |
| 936 | 937 |
| 937 InternalArrayConstructorStub::InternalArrayConstructorStub( | 938 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 938 Isolate* isolate) : PlatformCodeStub(isolate) { | 939 Isolate* isolate) : PlatformCodeStub(isolate) { |
| 939 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 940 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 940 } | 941 } |
| 941 | 942 |
| 942 | 943 |
| 943 } } // namespace v8::internal | 944 } } // namespace v8::internal |
| OLD | NEW |