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

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

Issue 352583008: Rollback to Version 3.28.4 (based on bleeding_edge revision r22031) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 5 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.cc ('k') | src/code-stubs.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 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 zone_(zone), 271 zone_(zone),
272 isolate_(NULL), 272 isolate_(NULL),
273 hash_seed_(hash_seed) { 273 hash_seed_(hash_seed) {
274 #define F(name, str) \ 274 #define F(name, str) \
275 name##_string_ = NULL; 275 name##_string_ = NULL;
276 STRING_CONSTANTS(F) 276 STRING_CONSTANTS(F)
277 #undef F 277 #undef F
278 } 278 }
279 279
280 const AstRawString* GetOneByteString(Vector<const uint8_t> literal); 280 const AstRawString* GetOneByteString(Vector<const uint8_t> literal);
281 const AstRawString* GetOneByteString(const char* string) {
282 return GetOneByteString(Vector<const uint8_t>(
283 reinterpret_cast<const uint8_t*>(string), StrLength(string)));
284 }
285 const AstRawString* GetTwoByteString(Vector<const uint16_t> literal); 281 const AstRawString* GetTwoByteString(Vector<const uint16_t> literal);
286 const AstRawString* GetString(Handle<String> literal); 282 const AstRawString* GetString(Handle<String> literal);
287 const AstConsString* NewConsString(const AstString* left, 283 const AstConsString* NewConsString(const AstString* left,
288 const AstString* right); 284 const AstString* right);
289 285
290 void Internalize(Isolate* isolate); 286 void Internalize(Isolate* isolate);
291 bool IsInternalized() { 287 bool IsInternalized() {
292 return isolate_ != NULL; 288 return isolate_ != NULL;
293 } 289 }
294 290
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 const AstRawString* name##_string_; 331 const AstRawString* name##_string_;
336 STRING_CONSTANTS(F) 332 STRING_CONSTANTS(F)
337 #undef F 333 #undef F
338 }; 334 };
339 335
340 } } // namespace v8::internal 336 } } // namespace v8::internal
341 337
342 #undef STRING_CONSTANTS 338 #undef STRING_CONSTANTS
343 339
344 #endif // V8_AST_VALUE_FACTORY_H_ 340 #endif // V8_AST_VALUE_FACTORY_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698