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

Side by Side Diff: src/contexts.h

Issue 304553002: Replace STATIC_CHECK with STATIC_ASSERT. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/checks.h ('k') | src/heap.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_CONTEXTS_H_ 5 #ifndef V8_CONTEXTS_H_
6 #define V8_CONTEXTS_H_ 6 #define V8_CONTEXTS_H_
7 7
8 #include "heap.h" 8 #include "heap.h"
9 #include "objects.h" 9 #include "objects.h"
10 10
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 private: 538 private:
539 // Unchecked access to the slots. 539 // Unchecked access to the slots.
540 Object* unchecked_previous() { return get(PREVIOUS_INDEX); } 540 Object* unchecked_previous() { return get(PREVIOUS_INDEX); }
541 541
542 #ifdef DEBUG 542 #ifdef DEBUG
543 // Bootstrapping-aware type checks. 543 // Bootstrapping-aware type checks.
544 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid); 544 static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid);
545 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 545 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
546 #endif 546 #endif
547 547
548 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); 548 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
549 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 549 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
550 }; 550 };
551 551
552 } } // namespace v8::internal 552 } } // namespace v8::internal
553 553
554 #endif // V8_CONTEXTS_H_ 554 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/checks.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698