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/v8globals.h

Issue 7979001: Scope tree serialization and ScopeIterator cleanup. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Created 9 years, 2 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/scopes.cc ('k') | test/cctest/test-parsing.cc » ('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 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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 502
503 503
504 // Used to specify whether a receiver is implicitly or explicitly 504 // Used to specify whether a receiver is implicitly or explicitly
505 // provided to a call. 505 // provided to a call.
506 enum CallKind { 506 enum CallKind {
507 CALL_AS_METHOD, 507 CALL_AS_METHOD,
508 CALL_AS_FUNCTION 508 CALL_AS_FUNCTION
509 }; 509 };
510 510
511 511
512 enum ScopeType {
513 EVAL_SCOPE, // The top-level scope for an eval source.
514 FUNCTION_SCOPE, // The top-level scope for a function.
515 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval.
516 CATCH_SCOPE, // The scope introduced by catch.
517 BLOCK_SCOPE, // The scope introduced by a new block.
518 WITH_SCOPE // The scope introduced by with.
519 };
520
521
512 static const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; 522 static const uint32_t kHoleNanUpper32 = 0x7FFFFFFF;
513 static const uint32_t kHoleNanLower32 = 0xFFFFFFFF; 523 static const uint32_t kHoleNanLower32 = 0xFFFFFFFF;
514 static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; 524 static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000;
515 525
516 const uint64_t kHoleNanInt64 = 526 const uint64_t kHoleNanInt64 =
517 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; 527 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;
518 const uint64_t kLastNonNaNInt64 = 528 const uint64_t kLastNonNaNInt64 =
519 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); 529 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32);
520 530
521 531
(...skipping 21 matching lines...) Expand all
543 INTERNAL, // like VAR, but not user-visible (may or may not 553 INTERNAL, // like VAR, but not user-visible (may or may not
544 // be in a context) 554 // be in a context)
545 555
546 TEMPORARY // temporary variables (not user-visible), never 556 TEMPORARY // temporary variables (not user-visible), never
547 // in a context 557 // in a context
548 }; 558 };
549 559
550 } } // namespace v8::internal 560 } } // namespace v8::internal
551 561
552 #endif // V8_V8GLOBALS_H_ 562 #endif // V8_V8GLOBALS_H_
OLDNEW
« no previous file with comments | « src/scopes.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698