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 4360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4371 ReturnAddressLocationResolver return_address_resolver) { | 4371 ReturnAddressLocationResolver return_address_resolver) { |
4372 i::V8::SetReturnAddressLocationResolver(return_address_resolver); | 4372 i::V8::SetReturnAddressLocationResolver(return_address_resolver); |
4373 } | 4373 } |
4374 | 4374 |
4375 | 4375 |
4376 bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { | 4376 bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { |
4377 return i::ProfileEntryHookStub::SetFunctionEntryHook(entry_hook); | 4377 return i::ProfileEntryHookStub::SetFunctionEntryHook(entry_hook); |
4378 } | 4378 } |
4379 | 4379 |
4380 | 4380 |
4381 void v8::V8::SetJitCodeEventHandler( | 4381 void v8::V8::SetJitCodeEventHandler(JitCodeEventOptions options, |
4382 JitCodeEventOptions options, JitCodeEventHandler event_handler) { | 4382 JitCodeEventHandler event_handler) { |
4383 i::Isolate* isolate = i::Isolate::Current(); | 4383 i::Isolate* isolate = i::Isolate::Current(); |
4384 // Ensure that logging is initialized for our isolate. | 4384 // Ensure that logging is initialized for our isolate. |
4385 isolate->InitializeLoggingAndCounters(); | 4385 isolate->InitializeLoggingAndCounters(); |
4386 isolate->logger()->SetCodeEventHandler(options, event_handler); | 4386 isolate->logger()->SetCodeEventHandler(options, |
| 4387 event_handler); |
4387 } | 4388 } |
4388 | 4389 |
4389 | 4390 |
4390 bool v8::V8::Dispose() { | 4391 bool v8::V8::Dispose() { |
4391 i::Isolate* isolate = i::Isolate::Current(); | 4392 i::Isolate* isolate = i::Isolate::Current(); |
4392 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), | 4393 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), |
4393 "v8::V8::Dispose()", | 4394 "v8::V8::Dispose()", |
4394 "Use v8::Isolate::Dispose() for a non-default isolate.")) { | 4395 "Use v8::Isolate::Dispose() for a non-default isolate.")) { |
4395 return false; | 4396 return false; |
4396 } | 4397 } |
(...skipping 2298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6695 | 6696 |
6696 v->VisitPointers(blocks_.first(), first_block_limit_); | 6697 v->VisitPointers(blocks_.first(), first_block_limit_); |
6697 | 6698 |
6698 for (int i = 1; i < blocks_.length(); i++) { | 6699 for (int i = 1; i < blocks_.length(); i++) { |
6699 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6700 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
6700 } | 6701 } |
6701 } | 6702 } |
6702 | 6703 |
6703 | 6704 |
6704 } } // namespace v8::internal | 6705 } } // namespace v8::internal |
OLD | NEW |