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

Side by Side Diff: src/contexts.h

Issue 9401008: Parsing of basic module declarations (no imports/exports yet). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Lasse's comments. Created 8 years, 10 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/ast.h ('k') | src/flag-definitions.h » ('j') | src/parser.cc » ('J')
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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 return map == map->GetHeap()->catch_context_map(); 349 return map == map->GetHeap()->catch_context_map();
350 } 350 }
351 bool IsWithContext() { 351 bool IsWithContext() {
352 Map* map = this->map(); 352 Map* map = this->map();
353 return map == map->GetHeap()->with_context_map(); 353 return map == map->GetHeap()->with_context_map();
354 } 354 }
355 bool IsBlockContext() { 355 bool IsBlockContext() {
356 Map* map = this->map(); 356 Map* map = this->map();
357 return map == map->GetHeap()->block_context_map(); 357 return map == map->GetHeap()->block_context_map();
358 } 358 }
359 bool IsModuleContext() {
360 Map* map = this->map();
361 return map == map->GetHeap()->module_context_map();
362 }
359 363
360 // Tells whether the global context is marked with out of memory. 364 // Tells whether the global context is marked with out of memory.
361 inline bool has_out_of_memory(); 365 inline bool has_out_of_memory();
362 366
363 // Mark the global context with out of memory. 367 // Mark the global context with out of memory.
364 inline void mark_out_of_memory(); 368 inline void mark_out_of_memory();
365 369
366 // A global context hold a list of all functions which have been optimized. 370 // A global context hold a list of all functions which have been optimized.
367 void AddOptimizedFunction(JSFunction* function); 371 void AddOptimizedFunction(JSFunction* function);
368 void RemoveOptimizedFunction(JSFunction* function); 372 void RemoveOptimizedFunction(JSFunction* function);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 #ifdef DEBUG 443 #ifdef DEBUG
440 // Bootstrapping-aware type checks. 444 // Bootstrapping-aware type checks.
441 static bool IsBootstrappingOrContext(Object* object); 445 static bool IsBootstrappingOrContext(Object* object);
442 static bool IsBootstrappingOrGlobalObject(Object* object); 446 static bool IsBootstrappingOrGlobalObject(Object* object);
443 #endif 447 #endif
444 }; 448 };
445 449
446 } } // namespace v8::internal 450 } } // namespace v8::internal
447 451
448 #endif // V8_CONTEXTS_H_ 452 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/flag-definitions.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698