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

Side by Side Diff: src/isolate.cc

Issue 6901026: Fix compilation with debuggersupport=off. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: added isolate-inl.h Created 9 years, 8 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 | « src/isolate.h ('k') | src/isolate-inl.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 thread_data_table_ = new Isolate::ThreadDataTable(); 320 thread_data_table_ = new Isolate::ThreadDataTable();
321 default_isolate_ = new Isolate(); 321 default_isolate_ = new Isolate();
322 } 322 }
323 // Can't use SetIsolateThreadLocals(default_isolate_, NULL) here 323 // Can't use SetIsolateThreadLocals(default_isolate_, NULL) here
324 // becase a non-null thread data may be already set. 324 // becase a non-null thread data may be already set.
325 Thread::SetThreadLocal(isolate_key_, default_isolate_); 325 Thread::SetThreadLocal(isolate_key_, default_isolate_);
326 CHECK(default_isolate_->PreInit()); 326 CHECK(default_isolate_->PreInit());
327 } 327 }
328 328
329 329
330 #ifdef ENABLE_DEBUGGER_SUPPORT
330 Debugger* Isolate::GetDefaultIsolateDebugger() { 331 Debugger* Isolate::GetDefaultIsolateDebugger() {
331 EnsureDefaultIsolate(); 332 EnsureDefaultIsolate();
332 return default_isolate_->debugger(); 333 return default_isolate_->debugger();
333 } 334 }
335 #endif
334 336
335 337
336 StackGuard* Isolate::GetDefaultIsolateStackGuard() { 338 StackGuard* Isolate::GetDefaultIsolateStackGuard() {
337 EnsureDefaultIsolate(); 339 EnsureDefaultIsolate();
338 return default_isolate_->stack_guard(); 340 return default_isolate_->stack_guard();
339 } 341 }
340 342
341 343
342 void Isolate::EnterDefaultIsolate() { 344 void Isolate::EnterDefaultIsolate() {
343 EnsureDefaultIsolate(); 345 EnsureDefaultIsolate();
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 907
906 #ifdef DEBUG 908 #ifdef DEBUG
907 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 909 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
908 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 910 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
909 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 911 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
910 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 912 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
911 #undef ISOLATE_FIELD_OFFSET 913 #undef ISOLATE_FIELD_OFFSET
912 #endif 914 #endif
913 915
914 } } // namespace v8::internal 916 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/isolate-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698