| OLD | NEW |
| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 // If a list of variable declarations includes any initializers. | 444 // If a list of variable declarations includes any initializers. |
| 445 enum VariableDeclarationProperties { | 445 enum VariableDeclarationProperties { |
| 446 kHasInitializers, | 446 kHasInitializers, |
| 447 kHasNoInitializers | 447 kHasNoInitializers |
| 448 }; | 448 }; |
| 449 | 449 |
| 450 class BlockState; | 450 class BlockState; |
| 451 | 451 |
| 452 class FunctionState BASE_EMBEDDED { | 452 class FunctionState BASE_EMBEDDED { |
| 453 public: | 453 public: |
| 454 FunctionState(Parser* parser, | 454 FunctionState(Parser* parser, Scope* scope); |
| 455 Scope* scope, | |
| 456 Isolate* isolate); | |
| 457 ~FunctionState(); | 455 ~FunctionState(); |
| 458 | 456 |
| 459 int NextMaterializedLiteralIndex() { | 457 int NextMaterializedLiteralIndex() { |
| 460 return next_materialized_literal_index_++; | 458 return next_materialized_literal_index_++; |
| 461 } | 459 } |
| 462 int materialized_literal_count() { | 460 int materialized_literal_count() { |
| 463 return next_materialized_literal_index_ - JSFunction::kLiteralsPrefixSize; | 461 return next_materialized_literal_index_ - JSFunction::kLiteralsPrefixSize; |
| 464 } | 462 } |
| 465 | 463 |
| 466 int NextHandlerIndex() { return next_handler_index_++; } | 464 int NextHandlerIndex() { return next_handler_index_++; } |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 private: | 813 private: |
| 816 static const int kLiteralTypeSlot = 0; | 814 static const int kLiteralTypeSlot = 0; |
| 817 static const int kElementsSlot = 1; | 815 static const int kElementsSlot = 1; |
| 818 | 816 |
| 819 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); | 817 DISALLOW_IMPLICIT_CONSTRUCTORS(CompileTimeValue); |
| 820 }; | 818 }; |
| 821 | 819 |
| 822 } } // namespace v8::internal | 820 } } // namespace v8::internal |
| 823 | 821 |
| 824 #endif // V8_PARSER_H_ | 822 #endif // V8_PARSER_H_ |
| OLD | NEW |