| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #include "api.h" | 28 #include "api.h" |
| 29 | 29 |
| 30 #include <math.h> // For isnan. | 30 #include <math.h> // For isnan. |
| 31 #include <string.h> // For memcpy, strlen. | 31 #include <string.h> // For memcpy, strlen. |
| 32 #include "../include/v8-debug.h" | 32 #include "../include/v8-debug.h" |
| 33 #include "../include/v8-profiler.h" | 33 #include "../include/v8-profiler.h" |
| 34 #include "../include/v8-testing.h" | 34 #include "../include/v8-testing.h" |
| 35 #include "bootstrapper.h" | 35 #include "bootstrapper.h" |
| 36 #include "code-events.h" |
| 36 #include "code-stubs.h" | 37 #include "code-stubs.h" |
| 37 #include "compiler.h" | 38 #include "compiler.h" |
| 38 #include "conversions-inl.h" | 39 #include "conversions-inl.h" |
| 39 #include "counters.h" | 40 #include "counters.h" |
| 40 #include "debug.h" | 41 #include "debug.h" |
| 41 #include "deoptimizer.h" | 42 #include "deoptimizer.h" |
| 42 #include "execution.h" | 43 #include "execution.h" |
| 43 #include "global-handles.h" | 44 #include "global-handles.h" |
| 44 #include "heap-profiler.h" | 45 #include "heap-profiler.h" |
| 45 #include "messages.h" | 46 #include "messages.h" |
| (...skipping 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4250 ReturnAddressLocationResolver return_address_resolver) { | 4251 ReturnAddressLocationResolver return_address_resolver) { |
| 4251 i::V8::SetReturnAddressLocationResolver(return_address_resolver); | 4252 i::V8::SetReturnAddressLocationResolver(return_address_resolver); |
| 4252 } | 4253 } |
| 4253 | 4254 |
| 4254 | 4255 |
| 4255 bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { | 4256 bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { |
| 4256 return i::ProfileEntryHookStub::SetFunctionEntryHook(entry_hook); | 4257 return i::ProfileEntryHookStub::SetFunctionEntryHook(entry_hook); |
| 4257 } | 4258 } |
| 4258 | 4259 |
| 4259 | 4260 |
| 4261 void v8::V8::SetJitCodeEventHandler(JitCodeEventHandler event_handler) { |
| 4262 i::CodeEvents::set_handler(event_handler); |
| 4263 } |
| 4264 |
| 4265 |
| 4260 bool v8::V8::Dispose() { | 4266 bool v8::V8::Dispose() { |
| 4261 i::Isolate* isolate = i::Isolate::Current(); | 4267 i::Isolate* isolate = i::Isolate::Current(); |
| 4262 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), | 4268 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), |
| 4263 "v8::V8::Dispose()", | 4269 "v8::V8::Dispose()", |
| 4264 "Use v8::Isolate::Dispose() for a non-default isolate.")) { | 4270 "Use v8::Isolate::Dispose() for a non-default isolate.")) { |
| 4265 return false; | 4271 return false; |
| 4266 } | 4272 } |
| 4267 i::V8::TearDown(); | 4273 i::V8::TearDown(); |
| 4268 return true; | 4274 return true; |
| 4269 } | 4275 } |
| (...skipping 2245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6515 | 6521 |
| 6516 v->VisitPointers(blocks_.first(), first_block_limit_); | 6522 v->VisitPointers(blocks_.first(), first_block_limit_); |
| 6517 | 6523 |
| 6518 for (int i = 1; i < blocks_.length(); i++) { | 6524 for (int i = 1; i < blocks_.length(); i++) { |
| 6519 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6525 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
| 6520 } | 6526 } |
| 6521 } | 6527 } |
| 6522 | 6528 |
| 6523 | 6529 |
| 6524 } } // namespace v8::internal | 6530 } } // namespace v8::internal |
| OLD | NEW |