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