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 4421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4432 ReturnAddressLocationResolver return_address_resolver) { | 4432 ReturnAddressLocationResolver return_address_resolver) { |
4433 i::V8::SetReturnAddressLocationResolver(return_address_resolver); | 4433 i::V8::SetReturnAddressLocationResolver(return_address_resolver); |
4434 } | 4434 } |
4435 | 4435 |
4436 | 4436 |
4437 bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { | 4437 bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { |
4438 return i::ProfileEntryHookStub::SetFunctionEntryHook(entry_hook); | 4438 return i::ProfileEntryHookStub::SetFunctionEntryHook(entry_hook); |
4439 } | 4439 } |
4440 | 4440 |
4441 | 4441 |
4442 void v8::V8::SetJitCodeEventHandler( | 4442 void v8::V8::SetJitCodeEventHandler(JitCodeEventOptions options, |
4443 JitCodeEventOptions options, JitCodeEventHandler event_handler) { | 4443 JitCodeEventHandler event_handler, |
| 4444 bool support_moved_code) { |
4444 i::Isolate* isolate = i::Isolate::Current(); | 4445 i::Isolate* isolate = i::Isolate::Current(); |
4445 // Ensure that logging is initialized for our isolate. | 4446 // Ensure that logging is initialized for our isolate. |
4446 isolate->InitializeLoggingAndCounters(); | 4447 isolate->InitializeLoggingAndCounters(); |
4447 isolate->logger()->SetCodeEventHandler(options, event_handler); | 4448 isolate->logger()->SetCodeEventHandler(options, |
| 4449 event_handler, |
| 4450 support_moved_code); |
4448 } | 4451 } |
4449 | 4452 |
4450 | 4453 |
4451 bool v8::V8::Dispose() { | 4454 bool v8::V8::Dispose() { |
4452 i::Isolate* isolate = i::Isolate::Current(); | 4455 i::Isolate* isolate = i::Isolate::Current(); |
4453 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), | 4456 if (!ApiCheck(isolate != NULL && isolate->IsDefaultIsolate(), |
4454 "v8::V8::Dispose()", | 4457 "v8::V8::Dispose()", |
4455 "Use v8::Isolate::Dispose() for a non-default isolate.")) { | 4458 "Use v8::Isolate::Dispose() for a non-default isolate.")) { |
4456 return false; | 4459 return false; |
4457 } | 4460 } |
(...skipping 2281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6739 | 6742 |
6740 v->VisitPointers(blocks_.first(), first_block_limit_); | 6743 v->VisitPointers(blocks_.first(), first_block_limit_); |
6741 | 6744 |
6742 for (int i = 1; i < blocks_.length(); i++) { | 6745 for (int i = 1; i < blocks_.length(); i++) { |
6743 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6746 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
6744 } | 6747 } |
6745 } | 6748 } |
6746 | 6749 |
6747 | 6750 |
6748 } } // namespace v8::internal | 6751 } } // namespace v8::internal |
OLD | NEW |