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

Side by Side Diff: src/runtime.h

Issue 3181036: Created collector class and used it to collect identifiers during scanning. (Closed)
Patch Set: Created 10 years, 4 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
« no previous file with comments | « src/parser.cc ('k') | src/runtime.cc » ('j') | src/utils.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 int stub_id; 412 int stub_id;
413 // Size of result, if complex (larger than a single pointer), 413 // Size of result, if complex (larger than a single pointer),
414 // otherwise zero. 414 // otherwise zero.
415 int result_size; 415 int result_size;
416 }; 416 };
417 417
418 // Get the runtime function with the given function id. 418 // Get the runtime function with the given function id.
419 static Function* FunctionForId(FunctionId fid); 419 static Function* FunctionForId(FunctionId fid);
420 420
421 // Get the runtime function with the given name. 421 // Get the runtime function with the given name.
422 static Function* FunctionForName(const char* name); 422 static Function* FunctionForName(Vector<const char> name);
423 423
424 static int StringMatch(Handle<String> sub, Handle<String> pat, int index); 424 static int StringMatch(Handle<String> sub, Handle<String> pat, int index);
425 425
426 static bool IsUpperCaseChar(uint16_t ch); 426 static bool IsUpperCaseChar(uint16_t ch);
427 427
428 // TODO(1240886): The following three methods are *not* handle safe, 428 // TODO(1240886): The following three methods are *not* handle safe,
429 // but accept handle arguments. This seems fragile. 429 // but accept handle arguments. This seems fragile.
430 430
431 // Support getting the characters in a string using [] notation as 431 // Support getting the characters in a string using [] notation as
432 // in Firefox/SpiderMonkey, Safari and Opera. 432 // in Firefox/SpiderMonkey, Safari and Opera.
(...skipping 20 matching lines...) Expand all
453 int position); 453 int position);
454 454
455 // Helper functions used stubs. 455 // Helper functions used stubs.
456 static void PerformGC(Object* result); 456 static void PerformGC(Object* result);
457 }; 457 };
458 458
459 459
460 } } // namespace v8::internal 460 } } // namespace v8::internal
461 461
462 #endif // V8_RUNTIME_H_ 462 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/runtime.cc » ('j') | src/utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698