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

Side by Side Diff: src/code-stubs-hydrogen.cc

Issue 181543002: Eliminate extended mode, and other modes clean-up (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/code-stubs.cc ('k') | src/compilation-cache.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 Add<HConstant>(factory->empty_fixed_array()); 1288 Add<HConstant>(factory->empty_fixed_array());
1289 HValue* shared_info = GetParameter(0); 1289 HValue* shared_info = GetParameter(0);
1290 1290
1291 AddIncrementCounter(counters->fast_new_closure_total()); 1291 AddIncrementCounter(counters->fast_new_closure_total());
1292 1292
1293 // Create a new closure from the given function info in new space 1293 // Create a new closure from the given function info in new space
1294 HValue* size = Add<HConstant>(JSFunction::kSize); 1294 HValue* size = Add<HConstant>(JSFunction::kSize);
1295 HInstruction* js_function = Add<HAllocate>(size, HType::JSObject(), 1295 HInstruction* js_function = Add<HAllocate>(size, HType::JSObject(),
1296 NOT_TENURED, JS_FUNCTION_TYPE); 1296 NOT_TENURED, JS_FUNCTION_TYPE);
1297 1297
1298 int map_index = Context::FunctionMapIndex(casted_stub()->language_mode(), 1298 int map_index = Context::FunctionMapIndex(casted_stub()->strict_mode(),
1299 casted_stub()->is_generator()); 1299 casted_stub()->is_generator());
1300 1300
1301 // Compute the function map in the current native context and set that 1301 // Compute the function map in the current native context and set that
1302 // as the map of the allocated object. 1302 // as the map of the allocated object.
1303 HInstruction* native_context = BuildGetNativeContext(); 1303 HInstruction* native_context = BuildGetNativeContext();
1304 HInstruction* map_slot_value = Add<HLoadNamedField>( 1304 HInstruction* map_slot_value = Add<HLoadNamedField>(
1305 native_context, static_cast<HValue*>(NULL), 1305 native_context, static_cast<HValue*>(NULL),
1306 HObjectAccess::ForContextSlot(map_index)); 1306 HObjectAccess::ForContextSlot(map_index));
1307 Add<HStoreNamedField>(js_function, HObjectAccess::ForMap(), map_slot_value); 1307 Add<HStoreNamedField>(js_function, HObjectAccess::ForMap(), map_slot_value);
1308 1308
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 return BuildRegExpConstructResult(length, index, input); 1420 return BuildRegExpConstructResult(length, index, input);
1421 } 1421 }
1422 1422
1423 1423
1424 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) { 1424 Handle<Code> RegExpConstructResultStub::GenerateCode(Isolate* isolate) {
1425 return DoGenerateCode(isolate, this); 1425 return DoGenerateCode(isolate, this);
1426 } 1426 }
1427 1427
1428 1428
1429 } } // namespace v8::internal 1429 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compilation-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698