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

Side by Side Diff: src/factory.cc

Issue 418143007: FYI Implementing 'super' keyword (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: one more test Created 6 years, 4 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
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/conversions.h" 8 #include "src/conversions.h"
9 #include "src/isolate-inl.h" 9 #include "src/isolate-inl.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 return result; 1205 return result;
1206 } 1206 }
1207 1207
1208 1208
1209 void Factory::InitializeFunction(Handle<JSFunction> function, 1209 void Factory::InitializeFunction(Handle<JSFunction> function,
1210 Handle<SharedFunctionInfo> info, 1210 Handle<SharedFunctionInfo> info,
1211 Handle<Context> context) { 1211 Handle<Context> context) {
1212 function->initialize_properties(); 1212 function->initialize_properties();
1213 function->initialize_elements(); 1213 function->initialize_elements();
1214 function->set_shared(*info); 1214 function->set_shared(*info);
1215 function->set_home_object(*undefined_value());
1215 function->set_code(info->code()); 1216 function->set_code(info->code());
1216 function->set_context(*context); 1217 function->set_context(*context);
1217 function->set_prototype_or_initial_map(*the_hole_value()); 1218 function->set_prototype_or_initial_map(*the_hole_value());
1218 function->set_literals_or_bindings(*empty_fixed_array()); 1219 function->set_literals_or_bindings(*empty_fixed_array());
1219 function->set_next_function_link(*undefined_value()); 1220 function->set_next_function_link(*undefined_value());
1220 if (info->is_arrow()) function->RemovePrototype(); 1221 if (info->is_arrow()) function->RemovePrototype();
1221 } 1222 }
1222 1223
1223 1224
1224 Handle<JSFunction> Factory::NewFunction(Handle<Map> map, 1225 Handle<JSFunction> Factory::NewFunction(Handle<Map> map,
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2370 return Handle<Object>::null(); 2371 return Handle<Object>::null();
2371 } 2372 }
2372 2373
2373 2374
2374 Handle<Object> Factory::ToBoolean(bool value) { 2375 Handle<Object> Factory::ToBoolean(bool value) {
2375 return value ? true_value() : false_value(); 2376 return value ? true_value() : false_value();
2376 } 2377 }
2377 2378
2378 2379
2379 } } // namespace v8::internal 2380 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698