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

Side by Side Diff: src/factory.cc

Issue 911363002: Revert of new classes: implement new.target passing to superclass constructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/deoptimizer.cc ('k') | src/frames.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 #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 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after
2096 share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER); 2096 share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER);
2097 #if TRACE_MAPS 2097 #if TRACE_MAPS
2098 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId()); 2098 share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId());
2099 #endif 2099 #endif
2100 share->set_profiler_ticks(0); 2100 share->set_profiler_ticks(0);
2101 share->set_ast_node_count(0); 2101 share->set_ast_node_count(0);
2102 share->set_counters(0); 2102 share->set_counters(0);
2103 2103
2104 // Set integer fields (smi or int, depending on the architecture). 2104 // Set integer fields (smi or int, depending on the architecture).
2105 share->set_length(0); 2105 share->set_length(0);
2106 share->set_internal_formal_parameter_count(0); 2106 share->set_formal_parameter_count(0);
2107 share->set_expected_nof_properties(0); 2107 share->set_expected_nof_properties(0);
2108 share->set_num_literals(0); 2108 share->set_num_literals(0);
2109 share->set_start_position_and_type(0); 2109 share->set_start_position_and_type(0);
2110 share->set_end_position(0); 2110 share->set_end_position(0);
2111 share->set_function_token_position(0); 2111 share->set_function_token_position(0);
2112 // All compiler hints default to false or 0. 2112 // All compiler hints default to false or 0.
2113 share->set_compiler_hints(0); 2113 share->set_compiler_hints(0);
2114 share->set_opt_count_and_bailout_reason(0); 2114 share->set_opt_count_and_bailout_reason(0);
2115 2115
2116 return share; 2116 return share;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
2328 return Handle<Object>::null(); 2328 return Handle<Object>::null();
2329 } 2329 }
2330 2330
2331 2331
2332 Handle<Object> Factory::ToBoolean(bool value) { 2332 Handle<Object> Factory::ToBoolean(bool value) {
2333 return value ? true_value() : false_value(); 2333 return value ? true_value() : false_value();
2334 } 2334 }
2335 2335
2336 2336
2337 } } // namespace v8::internal 2337 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698