Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: src/api.cc

Issue 25611003: build fix for 17049 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6469 matching lines...) Expand 10 before | Expand all | Expand 10 after
6480 6480
6481 6481
6482 void V8::CancelTerminateExecution(Isolate* isolate) { 6482 void V8::CancelTerminateExecution(Isolate* isolate) {
6483 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); 6483 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
6484 i_isolate->stack_guard()->CancelTerminateExecution(); 6484 i_isolate->stack_guard()->CancelTerminateExecution();
6485 } 6485 }
6486 6486
6487 6487
6488 Isolate* Isolate::GetCurrent() { 6488 Isolate* Isolate::GetCurrent() {
6489 i::Isolate* isolate = i::Isolate::UncheckedCurrent(); 6489 i::Isolate* isolate = i::Isolate::UncheckedCurrent();
6490 if (isolate == NULL) {
6491 isolate = i::Isolate::EnsureDefaultIsolate(true);
6492 ASSERT(isolate == i::Isolate::UncheckedCurrent());
6493 }
6490 return reinterpret_cast<Isolate*>(isolate); 6494 return reinterpret_cast<Isolate*>(isolate);
6491 } 6495 }
6492 6496
6493 6497
6494 Isolate* Isolate::New() { 6498 Isolate* Isolate::New() {
6495 i::Isolate* isolate = new i::Isolate(); 6499 i::Isolate* isolate = new i::Isolate();
6496 return reinterpret_cast<Isolate*>(isolate); 6500 return reinterpret_cast<Isolate*>(isolate);
6497 } 6501 }
6498 6502
6499 6503
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after
7527 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7531 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7528 Address callback_address = 7532 Address callback_address =
7529 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7533 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7530 VMState<EXTERNAL> state(isolate); 7534 VMState<EXTERNAL> state(isolate);
7531 ExternalCallbackScope call_scope(isolate, callback_address); 7535 ExternalCallbackScope call_scope(isolate, callback_address);
7532 callback(info); 7536 callback(info);
7533 } 7537 }
7534 7538
7535 7539
7536 } } // namespace v8::internal 7540 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698