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 5373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5384 isolate->counters()->ResetHistograms(); | 5384 isolate->counters()->ResetHistograms(); |
5385 } | 5385 } |
5386 | 5386 |
5387 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { | 5387 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) { |
5388 i::Isolate* isolate = EnterIsolateIfNeeded(); | 5388 i::Isolate* isolate = EnterIsolateIfNeeded(); |
5389 if (IsDeadCheck(isolate, "v8::V8::SetAddHistogramSampleFunction()")) return; | 5389 if (IsDeadCheck(isolate, "v8::V8::SetAddHistogramSampleFunction()")) return; |
5390 isolate->stats_table()-> | 5390 isolate->stats_table()-> |
5391 SetAddHistogramSampleFunction(callback); | 5391 SetAddHistogramSampleFunction(callback); |
5392 } | 5392 } |
5393 | 5393 |
5394 void V8::EnableSlidingStateWindow() { | |
5395 i::Isolate* isolate = i::Isolate::Current(); | |
5396 if (IsDeadCheck(isolate, "v8::V8::EnableSlidingStateWindow()")) return; | |
5397 isolate->logger()->EnableSlidingStateWindow(); | |
5398 } | |
5399 | |
5400 | |
5401 void V8::SetFailedAccessCheckCallbackFunction( | 5394 void V8::SetFailedAccessCheckCallbackFunction( |
5402 FailedAccessCheckCallback callback) { | 5395 FailedAccessCheckCallback callback) { |
5403 i::Isolate* isolate = i::Isolate::Current(); | 5396 i::Isolate* isolate = i::Isolate::Current(); |
5404 if (IsDeadCheck(isolate, "v8::V8::SetFailedAccessCheckCallbackFunction()")) { | 5397 if (IsDeadCheck(isolate, "v8::V8::SetFailedAccessCheckCallbackFunction()")) { |
5405 return; | 5398 return; |
5406 } | 5399 } |
5407 isolate->SetFailedAccessCheckCallback(callback); | 5400 isolate->SetFailedAccessCheckCallback(callback); |
5408 } | 5401 } |
5409 | 5402 |
5410 | 5403 |
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6711 | 6704 |
6712 v->VisitPointers(blocks_.first(), first_block_limit_); | 6705 v->VisitPointers(blocks_.first(), first_block_limit_); |
6713 | 6706 |
6714 for (int i = 1; i < blocks_.length(); i++) { | 6707 for (int i = 1; i < blocks_.length(); i++) { |
6715 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); | 6708 v->VisitPointers(blocks_[i], &blocks_[i][kHandleBlockSize]); |
6716 } | 6709 } |
6717 } | 6710 } |
6718 | 6711 |
6719 | 6712 |
6720 } } // namespace v8::internal | 6713 } } // namespace v8::internal |
OLD | NEW |