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

Side by Side Diff: src/ast-value-factory.h

Issue 663373003: Assign bailout and type feedback IDs in a post-pass (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/ast-numbering.cc ('k') | src/compiler.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 : string_table_(AstRawString::Compare), 275 : string_table_(AstRawString::Compare),
276 zone_(zone), 276 zone_(zone),
277 isolate_(NULL), 277 isolate_(NULL),
278 hash_seed_(hash_seed) { 278 hash_seed_(hash_seed) {
279 #define F(name, str) \ 279 #define F(name, str) \
280 name##_string_ = NULL; 280 name##_string_ = NULL;
281 STRING_CONSTANTS(F) 281 STRING_CONSTANTS(F)
282 #undef F 282 #undef F
283 } 283 }
284 284
285 Zone* zone() const { return zone_; }
286
285 const AstRawString* GetOneByteString(Vector<const uint8_t> literal); 287 const AstRawString* GetOneByteString(Vector<const uint8_t> literal);
286 const AstRawString* GetOneByteString(const char* string) { 288 const AstRawString* GetOneByteString(const char* string) {
287 return GetOneByteString(Vector<const uint8_t>( 289 return GetOneByteString(Vector<const uint8_t>(
288 reinterpret_cast<const uint8_t*>(string), StrLength(string))); 290 reinterpret_cast<const uint8_t*>(string), StrLength(string)));
289 } 291 }
290 const AstRawString* GetTwoByteString(Vector<const uint16_t> literal); 292 const AstRawString* GetTwoByteString(Vector<const uint16_t> literal);
291 const AstRawString* GetString(Handle<String> literal); 293 const AstRawString* GetString(Handle<String> literal);
292 const AstConsString* NewConsString(const AstString* left, 294 const AstConsString* NewConsString(const AstString* left,
293 const AstString* right); 295 const AstString* right);
294 296
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 346
345 347
346 bool AstRawString::IsArguments(AstValueFactory* ast_value_factory) const { 348 bool AstRawString::IsArguments(AstValueFactory* ast_value_factory) const {
347 return ast_value_factory->arguments_string() == this; 349 return ast_value_factory->arguments_string() == this;
348 } 350 }
349 } } // namespace v8::internal 351 } } // namespace v8::internal
350 352
351 #undef STRING_CONSTANTS 353 #undef STRING_CONSTANTS
352 354
353 #endif // V8_AST_VALUE_FACTORY_H_ 355 #endif // V8_AST_VALUE_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698