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

Side by Side Diff: src/isolate.cc

Issue 23513004: remove old style callbacks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: inlined a function used once Created 7 years, 3 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
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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after
1786 date_cache_(NULL), 1786 date_cache_(NULL),
1787 code_stub_interface_descriptors_(NULL), 1787 code_stub_interface_descriptors_(NULL),
1788 initialized_from_snapshot_(false), 1788 initialized_from_snapshot_(false),
1789 cpu_profiler_(NULL), 1789 cpu_profiler_(NULL),
1790 heap_profiler_(NULL), 1790 heap_profiler_(NULL),
1791 function_entry_hook_(NULL), 1791 function_entry_hook_(NULL),
1792 deferred_handles_head_(NULL), 1792 deferred_handles_head_(NULL),
1793 optimizing_compiler_thread_(this), 1793 optimizing_compiler_thread_(this),
1794 marking_thread_(NULL), 1794 marking_thread_(NULL),
1795 sweeper_thread_(NULL), 1795 sweeper_thread_(NULL),
1796 callback_table_(NULL),
1797 stress_deopt_count_(0) { 1796 stress_deopt_count_(0) {
1798 id_ = NoBarrier_AtomicIncrement(&isolate_counter_, 1); 1797 id_ = NoBarrier_AtomicIncrement(&isolate_counter_, 1);
1799 TRACE_ISOLATE(constructor); 1798 TRACE_ISOLATE(constructor);
1800 1799
1801 memset(isolate_addresses_, 0, 1800 memset(isolate_addresses_, 0,
1802 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1)); 1801 sizeof(isolate_addresses_[0]) * (kIsolateAddressCount + 1));
1803 1802
1804 heap_.isolate_ = this; 1803 heap_.isolate_ = this;
1805 stack_guard_.isolate_ = this; 1804 stack_guard_.isolate_ = this;
1806 1805
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2056 global_handles_ = NULL; 2055 global_handles_ = NULL;
2057 delete eternal_handles_; 2056 delete eternal_handles_;
2058 eternal_handles_ = NULL; 2057 eternal_handles_ = NULL;
2059 2058
2060 delete string_stream_debug_object_cache_; 2059 delete string_stream_debug_object_cache_;
2061 string_stream_debug_object_cache_ = NULL; 2060 string_stream_debug_object_cache_ = NULL;
2062 2061
2063 delete external_reference_table_; 2062 delete external_reference_table_;
2064 external_reference_table_ = NULL; 2063 external_reference_table_ = NULL;
2065 2064
2066 delete callback_table_;
2067 callback_table_ = NULL;
2068
2069 #ifdef ENABLE_DEBUGGER_SUPPORT 2065 #ifdef ENABLE_DEBUGGER_SUPPORT
2070 delete debugger_; 2066 delete debugger_;
2071 debugger_ = NULL; 2067 debugger_ = NULL;
2072 delete debug_; 2068 delete debug_;
2073 debug_ = NULL; 2069 debug_ = NULL;
2074 #endif 2070 #endif
2075 } 2071 }
2076 2072
2077 2073
2078 void Isolate::InitializeThreadLocal() { 2074 void Isolate::InitializeThreadLocal() {
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2527 2523
2528 #ifdef DEBUG 2524 #ifdef DEBUG
2529 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2525 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2530 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2526 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2531 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2527 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2532 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2528 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2533 #undef ISOLATE_FIELD_OFFSET 2529 #undef ISOLATE_FIELD_OFFSET
2534 #endif 2530 #endif
2535 2531
2536 } } // namespace v8::internal 2532 } } // namespace v8::internal
OLDNEW
« src/arm/stub-cache-arm.cc ('K') | « src/isolate.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698