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

Side by Side Diff: src/v8.h

Issue 23453030: Remove obsolete global V8::has_been_fooed flags. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « no previous file | src/v8.cc » ('j') | test/cctest/test-api.cc » ('J')
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) { 116 static void SetArrayBufferAllocator(v8::ArrayBuffer::Allocator *allocator) {
117 CHECK_EQ(NULL, array_buffer_allocator_); 117 CHECK_EQ(NULL, array_buffer_allocator_);
118 array_buffer_allocator_ = allocator; 118 array_buffer_allocator_ = allocator;
119 } 119 }
120 120
121 private: 121 private:
122 static void InitializeOncePerProcessImpl(); 122 static void InitializeOncePerProcessImpl();
123 static void InitializeOncePerProcess(); 123 static void InitializeOncePerProcess();
124 124
125 // True if V8 has ever been run
126 static bool has_been_set_up_;
127 // True if engine has been shut down
128 // (reset if engine is restarted)
129 static bool has_been_disposed_;
130 // List of callbacks when a Call completes. 125 // List of callbacks when a Call completes.
131 static List<CallCompletedCallback>* call_completed_callbacks_; 126 static List<CallCompletedCallback>* call_completed_callbacks_;
132 // Allocator for external array buffers. 127 // Allocator for external array buffers.
133 static v8::ArrayBuffer::Allocator* array_buffer_allocator_; 128 static v8::ArrayBuffer::Allocator* array_buffer_allocator_;
134 }; 129 };
135 130
136 131
137 // JavaScript defines two kinds of 'nil'. 132 // JavaScript defines two kinds of 'nil'.
138 enum NilValue { kNullValue, kUndefinedValue }; 133 enum NilValue { kNullValue, kUndefinedValue };
139 134
140 135
141 } } // namespace v8::internal 136 } } // namespace v8::internal
142 137
143 namespace i = v8::internal; 138 namespace i = v8::internal;
144 139
145 #endif // V8_V8_H_ 140 #endif // V8_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/v8.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698