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

Side by Side Diff: src/isolate.cc

Issue 12917002: Pass Isolates explicitly in Deoptimizer-related code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cleanup Created 7 years, 9 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/ia32/lithium-codegen-ia32.cc ('k') | src/liveedit.cc » ('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 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 stack_guard_.InitThread(lock); 2057 stack_guard_.InitThread(lock);
2058 } 2058 }
2059 2059
2060 // SetUp the object heap. 2060 // SetUp the object heap.
2061 ASSERT(!heap_.HasBeenSetUp()); 2061 ASSERT(!heap_.HasBeenSetUp());
2062 if (!heap_.SetUp()) { 2062 if (!heap_.SetUp()) {
2063 V8::FatalProcessOutOfMemory("heap setup"); 2063 V8::FatalProcessOutOfMemory("heap setup");
2064 return false; 2064 return false;
2065 } 2065 }
2066 2066
2067 deoptimizer_data_ = new DeoptimizerData; 2067 deoptimizer_data_ = new DeoptimizerData(memory_allocator_);
2068 2068
2069 const bool create_heap_objects = (des == NULL); 2069 const bool create_heap_objects = (des == NULL);
2070 if (create_heap_objects && !heap_.CreateHeapObjects()) { 2070 if (create_heap_objects && !heap_.CreateHeapObjects()) {
2071 V8::FatalProcessOutOfMemory("heap object creation"); 2071 V8::FatalProcessOutOfMemory("heap object creation");
2072 return false; 2072 return false;
2073 } 2073 }
2074 2074
2075 if (create_heap_objects) { 2075 if (create_heap_objects) {
2076 // Terminate the cache array with the sentinel so we can iterate. 2076 // Terminate the cache array with the sentinel so we can iterate.
2077 PushToPartialSnapshotCache(heap_.undefined_value()); 2077 PushToPartialSnapshotCache(heap_.undefined_value());
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 2365
2366 #ifdef DEBUG 2366 #ifdef DEBUG
2367 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2367 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2368 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2368 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2369 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2369 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2370 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2370 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2371 #undef ISOLATE_FIELD_OFFSET 2371 #undef ISOLATE_FIELD_OFFSET
2372 #endif 2372 #endif
2373 2373
2374 } } // namespace v8::internal 2374 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698