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

Side by Side Diff: src/factory.cc

Issue 607913002: Report promise reject with no handler (behind a flag). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: more comments Created 6 years, 2 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/factory.h ('k') | src/flag-definitions.h » ('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 #include "src/factory.h" 5 #include "src/factory.h"
6 6
7 #include "src/allocation-site-scopes.h" 7 #include "src/allocation-site-scopes.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 1912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 shared->set_num_literals(literals_array_size); 1923 shared->set_num_literals(literals_array_size);
1924 if (IsGeneratorFunction(kind)) { 1924 if (IsGeneratorFunction(kind)) {
1925 shared->set_instance_class_name(isolate()->heap()->Generator_string()); 1925 shared->set_instance_class_name(isolate()->heap()->Generator_string());
1926 shared->DisableOptimization(kGenerator); 1926 shared->DisableOptimization(kGenerator);
1927 } 1927 }
1928 return shared; 1928 return shared;
1929 } 1929 }
1930 1930
1931 1931
1932 Handle<JSMessageObject> Factory::NewJSMessageObject( 1932 Handle<JSMessageObject> Factory::NewJSMessageObject(
1933 Handle<String> type, 1933 Handle<String> type, Handle<JSArray> arguments, Handle<Object> promise,
1934 Handle<JSArray> arguments, 1934 int start_position, int end_position, Handle<Object> script,
1935 int start_position,
1936 int end_position,
1937 Handle<Object> script,
1938 Handle<Object> stack_frames) { 1935 Handle<Object> stack_frames) {
1939 Handle<Map> map = message_object_map(); 1936 Handle<Map> map = message_object_map();
1940 Handle<JSMessageObject> message = New<JSMessageObject>(map, NEW_SPACE); 1937 Handle<JSMessageObject> message = New<JSMessageObject>(map, NEW_SPACE);
1941 message->set_properties(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1938 message->set_properties(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1942 message->initialize_elements(); 1939 message->initialize_elements();
1943 message->set_elements(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1940 message->set_elements(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1944 message->set_type(*type); 1941 message->set_type(*type);
1945 message->set_arguments(*arguments); 1942 message->set_arguments(*arguments);
1943 message->set_promise(*promise);
1946 message->set_start_position(start_position); 1944 message->set_start_position(start_position);
1947 message->set_end_position(end_position); 1945 message->set_end_position(end_position);
1948 message->set_script(*script); 1946 message->set_script(*script);
1949 message->set_stack_frames(*stack_frames); 1947 message->set_stack_frames(*stack_frames);
1950 return message; 1948 return message;
1951 } 1949 }
1952 1950
1953 1951
1954 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo( 1952 Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
1955 Handle<String> name, 1953 Handle<String> name,
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
2398 return Handle<Object>::null(); 2396 return Handle<Object>::null();
2399 } 2397 }
2400 2398
2401 2399
2402 Handle<Object> Factory::ToBoolean(bool value) { 2400 Handle<Object> Factory::ToBoolean(bool value) {
2403 return value ? true_value() : false_value(); 2401 return value ? true_value() : false_value();
2404 } 2402 }
2405 2403
2406 2404
2407 } } // namespace v8::internal 2405 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698