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

Side by Side Diff: src/factory.h

Issue 14262004: Generator objects have [[Class]] === "Generator" (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Address review comments Created 7 years, 8 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
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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 INTERNALIZED_STRING_LIST(STRING_ACCESSOR) 447 INTERNALIZED_STRING_LIST(STRING_ACCESSOR)
448 #undef STRING_ACCESSOR 448 #undef STRING_ACCESSOR
449 449
450 Handle<String> hidden_string() { 450 Handle<String> hidden_string() {
451 return Handle<String>(&isolate()->heap()->hidden_string_); 451 return Handle<String>(&isolate()->heap()->hidden_string_);
452 } 452 }
453 453
454 Handle<SharedFunctionInfo> NewSharedFunctionInfo( 454 Handle<SharedFunctionInfo> NewSharedFunctionInfo(
455 Handle<String> name, 455 Handle<String> name,
456 int number_of_literals, 456 int number_of_literals,
457 bool is_generator,
457 Handle<Code> code, 458 Handle<Code> code,
458 Handle<ScopeInfo> scope_info); 459 Handle<ScopeInfo> scope_info);
459 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); 460 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name);
460 461
461 Handle<JSMessageObject> NewJSMessageObject( 462 Handle<JSMessageObject> NewJSMessageObject(
462 Handle<String> type, 463 Handle<String> type,
463 Handle<JSArray> arguments, 464 Handle<JSArray> arguments,
464 int start_position, 465 int start_position,
465 int end_position, 466 int end_position,
466 Handle<Object> script, 467 Handle<Object> script,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 // Update the map cache in the native context with (keys, map) 527 // Update the map cache in the native context with (keys, map)
527 Handle<MapCache> AddToMapCache(Handle<Context> context, 528 Handle<MapCache> AddToMapCache(Handle<Context> context,
528 Handle<FixedArray> keys, 529 Handle<FixedArray> keys,
529 Handle<Map> map); 530 Handle<Map> map);
530 }; 531 };
531 532
532 533
533 } } // namespace v8::internal 534 } } // namespace v8::internal
534 535
535 #endif // V8_FACTORY_H_ 536 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | test/mjsunit/harmony/generators-objects.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698