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

Side by Side Diff: src/isolate.cc

Issue 77913003: Make it possible to add more than one piece of embedder data to isolates (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 reinterpret_cast<void*>(this), id()); \ 1713 reinterpret_cast<void*>(this), id()); \
1714 } \ 1714 } \
1715 } while (false) 1715 } while (false)
1716 #else 1716 #else
1717 #define TRACE_ISOLATE(tag) 1717 #define TRACE_ISOLATE(tag)
1718 #endif 1718 #endif
1719 1719
1720 1720
1721 Isolate::Isolate() 1721 Isolate::Isolate()
1722 : state_(UNINITIALIZED), 1722 : state_(UNINITIALIZED),
1723 embedder_data_(NULL), 1723 embedder_data_(),
Sven Panne 2013/11/20 10:03:02 Can't we simply remove this line?
1724 entry_stack_(NULL), 1724 entry_stack_(NULL),
1725 stack_trace_nesting_level_(0), 1725 stack_trace_nesting_level_(0),
1726 incomplete_message_(NULL), 1726 incomplete_message_(NULL),
1727 preallocated_memory_thread_(NULL), 1727 preallocated_memory_thread_(NULL),
1728 preallocated_message_space_(NULL), 1728 preallocated_message_space_(NULL),
1729 bootstrapper_(NULL), 1729 bootstrapper_(NULL),
1730 runtime_profiler_(NULL), 1730 runtime_profiler_(NULL),
1731 compilation_cache_(NULL), 1731 compilation_cache_(NULL),
1732 counters_(NULL), 1732 counters_(NULL),
1733 code_range_(NULL), 1733 code_range_(NULL),
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
2526 2526
2527 #ifdef DEBUG 2527 #ifdef DEBUG
2528 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 2528 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
2529 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_); 2529 const intptr_t Isolate::name##_debug_offset_ = OFFSET_OF(Isolate, name##_);
2530 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 2530 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
2531 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 2531 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
2532 #undef ISOLATE_FIELD_OFFSET 2532 #undef ISOLATE_FIELD_OFFSET
2533 #endif 2533 #endif
2534 2534
2535 } } // namespace v8::internal 2535 } } // namespace v8::internal
OLDNEW
« src/isolate.h ('K') | « src/isolate.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698