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

Side by Side Diff: src/ast.h

Issue 177683002: Mode clean-up pt 1: rename classic/non-strict mode to sloppy mode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/array.js ('k') | src/ast.cc » ('j') | src/globals.h » ('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 2297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2308 Handle<String> name() const { return name_; } 2308 Handle<String> name() const { return name_; }
2309 Scope* scope() const { return scope_; } 2309 Scope* scope() const { return scope_; }
2310 ZoneList<Statement*>* body() const { return body_; } 2310 ZoneList<Statement*>* body() const { return body_; }
2311 void set_function_token_position(int pos) { function_token_position_ = pos; } 2311 void set_function_token_position(int pos) { function_token_position_ = pos; }
2312 int function_token_position() const { return function_token_position_; } 2312 int function_token_position() const { return function_token_position_; }
2313 int start_position() const; 2313 int start_position() const;
2314 int end_position() const; 2314 int end_position() const;
2315 int SourceSize() const { return end_position() - start_position(); } 2315 int SourceSize() const { return end_position() - start_position(); }
2316 bool is_expression() const { return IsExpression::decode(bitfield_); } 2316 bool is_expression() const { return IsExpression::decode(bitfield_); }
2317 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); } 2317 bool is_anonymous() const { return IsAnonymous::decode(bitfield_); }
2318 bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; } 2318 bool is_sloppy_mode() const { return language_mode() == SLOPPY_MODE; }
2319 LanguageMode language_mode() const; 2319 LanguageMode language_mode() const;
2320 2320
2321 int materialized_literal_count() { return materialized_literal_count_; } 2321 int materialized_literal_count() { return materialized_literal_count_; }
2322 int expected_property_count() { return expected_property_count_; } 2322 int expected_property_count() { return expected_property_count_; }
2323 int handler_count() { return handler_count_; } 2323 int handler_count() { return handler_count_; }
2324 int parameter_count() { return parameter_count_; } 2324 int parameter_count() { return parameter_count_; }
2325 2325
2326 bool AllowsLazyCompilation(); 2326 bool AllowsLazyCompilation();
2327 bool AllowsLazyCompilationWithoutContext(); 2327 bool AllowsLazyCompilationWithoutContext();
2328 2328
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
3357 3357
3358 private: 3358 private:
3359 Zone* zone_; 3359 Zone* zone_;
3360 Visitor visitor_; 3360 Visitor visitor_;
3361 }; 3361 };
3362 3362
3363 3363
3364 } } // namespace v8::internal 3364 } } // namespace v8::internal
3365 3365
3366 #endif // V8_AST_H_ 3366 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/ast.cc » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698