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

Side by Side Diff: src/heap/heap.h

Issue 776143005: Optimize Object.seal and Object.preventExtensions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add nonextensible and sealed as special transitions Created 6 years 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
« no previous file with comments | « src/globals.h ('k') | src/objects.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 V(value_string, "value") \ 272 V(value_string, "value") \
273 V(next_string, "next") \ 273 V(next_string, "next") \
274 V(byte_length_string, "byteLength") \ 274 V(byte_length_string, "byteLength") \
275 V(byte_offset_string, "byteOffset") \ 275 V(byte_offset_string, "byteOffset") \
276 V(minus_zero_string, "-0") \ 276 V(minus_zero_string, "-0") \
277 V(Array_string, "Array") \ 277 V(Array_string, "Array") \
278 V(Error_string, "Error") \ 278 V(Error_string, "Error") \
279 V(RegExp_string, "RegExp") 279 V(RegExp_string, "RegExp")
280 280
281 #define PRIVATE_SYMBOL_LIST(V) \ 281 #define PRIVATE_SYMBOL_LIST(V) \
282 V(nonextensible_symbol) \
283 V(sealed_symbol) \
282 V(frozen_symbol) \ 284 V(frozen_symbol) \
283 V(nonexistent_symbol) \ 285 V(nonexistent_symbol) \
284 V(elements_transition_symbol) \ 286 V(elements_transition_symbol) \
285 V(observed_symbol) \ 287 V(observed_symbol) \
286 V(uninitialized_symbol) \ 288 V(uninitialized_symbol) \
287 V(megamorphic_symbol) \ 289 V(megamorphic_symbol) \
288 V(premonomorphic_symbol) \ 290 V(premonomorphic_symbol) \
289 V(generic_symbol) \ 291 V(generic_symbol) \
290 V(stack_trace_symbol) \ 292 V(stack_trace_symbol) \
291 V(detailed_stack_trace_symbol) \ 293 V(detailed_stack_trace_symbol) \
(...skipping 2293 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2587 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2586 2588
2587 private: 2589 private:
2588 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2590 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2589 }; 2591 };
2590 #endif // DEBUG 2592 #endif // DEBUG
2591 } 2593 }
2592 } // namespace v8::internal 2594 } // namespace v8::internal
2593 2595
2594 #endif // V8_HEAP_HEAP_H_ 2596 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698