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

Side by Side Diff: src/factory.h

Issue 160073006: Implement handling of arrow functions in the parser (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased after latest changes in runtime.{h,cc} Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | src/parser.cc » ('J')
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 "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 577
578 Handle<String> hidden_string() { 578 Handle<String> hidden_string() {
579 return Handle<String>(&isolate()->heap()->hidden_string_); 579 return Handle<String>(&isolate()->heap()->hidden_string_);
580 } 580 }
581 581
582 // Allocates a new SharedFunctionInfo object. 582 // Allocates a new SharedFunctionInfo object.
583 Handle<SharedFunctionInfo> NewSharedFunctionInfo( 583 Handle<SharedFunctionInfo> NewSharedFunctionInfo(
584 Handle<String> name, 584 Handle<String> name,
585 int number_of_literals, 585 int number_of_literals,
586 bool is_generator, 586 bool is_generator,
587 bool is_arrow,
587 Handle<Code> code, 588 Handle<Code> code,
588 Handle<ScopeInfo> scope_info); 589 Handle<ScopeInfo> scope_info);
589 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); 590 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name);
590 591
591 // Allocates a new JSMessageObject object. 592 // Allocates a new JSMessageObject object.
592 Handle<JSMessageObject> NewJSMessageObject( 593 Handle<JSMessageObject> NewJSMessageObject(
593 Handle<String> type, 594 Handle<String> type,
594 Handle<JSArray> arguments, 595 Handle<JSArray> arguments,
595 int start_position, 596 int start_position,
596 int end_position, 597 int end_position,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
681 // the string representation of the number. Otherwise return undefined. 682 // the string representation of the number. Otherwise return undefined.
682 Handle<Object> GetNumberStringCache(Handle<Object> number); 683 Handle<Object> GetNumberStringCache(Handle<Object> number);
683 684
684 // Update the cache with a new number-string pair. 685 // Update the cache with a new number-string pair.
685 void SetNumberStringCache(Handle<Object> number, Handle<String> string); 686 void SetNumberStringCache(Handle<Object> number, Handle<String> string);
686 }; 687 };
687 688
688 } } // namespace v8::internal 689 } } // namespace v8::internal
689 690
690 #endif // V8_FACTORY_H_ 691 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/factory.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698