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

Side by Side Diff: src/factory.h

Issue 382893003: Implement basic code generation for arrow functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Test failures fixed, some minor corrections 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/compiler.cc ('k') | src/factory.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 inline void set_string_table(Handle<StringTable> table) { 600 inline void set_string_table(Handle<StringTable> table) {
601 isolate()->heap()->set_string_table(*table); 601 isolate()->heap()->set_string_table(*table);
602 } 602 }
603 603
604 Handle<String> hidden_string() { 604 Handle<String> hidden_string() {
605 return Handle<String>(&isolate()->heap()->hidden_string_); 605 return Handle<String>(&isolate()->heap()->hidden_string_);
606 } 606 }
607 607
608 // Allocates a new SharedFunctionInfo object. 608 // Allocates a new SharedFunctionInfo object.
609 Handle<SharedFunctionInfo> NewSharedFunctionInfo( 609 Handle<SharedFunctionInfo> NewSharedFunctionInfo(
610 Handle<String> name, 610 Handle<String> name, int number_of_literals, bool is_generator,
611 int number_of_literals, 611 bool is_arrow, Handle<Code> code, Handle<ScopeInfo> scope_info,
612 bool is_generator,
613 Handle<Code> code,
614 Handle<ScopeInfo> scope_info,
615 Handle<FixedArray> feedback_vector); 612 Handle<FixedArray> feedback_vector);
616 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, 613 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name,
617 MaybeHandle<Code> code); 614 MaybeHandle<Code> code);
618 615
619 // Allocate a new type feedback vector 616 // Allocate a new type feedback vector
620 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); 617 Handle<FixedArray> NewTypeFeedbackVector(int slot_count);
621 618
622 // Allocates a new JSMessageObject object. 619 // Allocates a new JSMessageObject object.
623 Handle<JSMessageObject> NewJSMessageObject( 620 Handle<JSMessageObject> NewJSMessageObject(
624 Handle<String> type, 621 Handle<String> type,
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 PretenureFlag pretenure = TENURED); 703 PretenureFlag pretenure = TENURED);
707 704
708 Handle<JSFunction> NewFunction(Handle<Map> map, 705 Handle<JSFunction> NewFunction(Handle<Map> map,
709 Handle<String> name, 706 Handle<String> name,
710 MaybeHandle<Code> maybe_code); 707 MaybeHandle<Code> maybe_code);
711 }; 708 };
712 709
713 } } // namespace v8::internal 710 } } // namespace v8::internal
714 711
715 #endif // V8_FACTORY_H_ 712 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698