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

Side by Side Diff: src/arm/lithium-arm.cc

Issue 6928061: Revert "First step in letting Crankshaft inline functions with a different context." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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 | « no previous file | src/hydrogen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 997 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 ASSERT(ast_id != AstNode::kNoNumber); 1008 ASSERT(ast_id != AstNode::kNoNumber);
1009 int value_count = hydrogen_env->length(); 1009 int value_count = hydrogen_env->length();
1010 LEnvironment* result = new LEnvironment(hydrogen_env->closure(), 1010 LEnvironment* result = new LEnvironment(hydrogen_env->closure(),
1011 ast_id, 1011 ast_id,
1012 hydrogen_env->parameter_count(), 1012 hydrogen_env->parameter_count(),
1013 argument_count_, 1013 argument_count_,
1014 value_count, 1014 value_count,
1015 outer); 1015 outer);
1016 int argument_index = 0; 1016 int argument_index = 0;
1017 for (int i = 0; i < value_count; ++i) { 1017 for (int i = 0; i < value_count; ++i) {
1018 if (hydrogen_env->is_special_index(i)) continue;
1019
1020 HValue* value = hydrogen_env->values()->at(i); 1018 HValue* value = hydrogen_env->values()->at(i);
1021 LOperand* op = NULL; 1019 LOperand* op = NULL;
1022 if (value->IsArgumentsObject()) { 1020 if (value->IsArgumentsObject()) {
1023 op = NULL; 1021 op = NULL;
1024 } else if (value->IsPushArgument()) { 1022 } else if (value->IsPushArgument()) {
1025 op = new LArgument(argument_index++); 1023 op = new LArgument(argument_index++);
1026 } else { 1024 } else {
1027 op = UseAny(value); 1025 op = UseAny(value);
1028 } 1026 }
1029 result->AddValue(op, value->representation()); 1027 result->AddValue(op, value->representation());
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2146 2144
2147 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2145 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2148 LOperand* key = UseRegisterAtStart(instr->key()); 2146 LOperand* key = UseRegisterAtStart(instr->key());
2149 LOperand* object = UseRegisterAtStart(instr->object()); 2147 LOperand* object = UseRegisterAtStart(instr->object());
2150 LIn* result = new LIn(key, object); 2148 LIn* result = new LIn(key, object);
2151 return MarkAsCall(DefineFixed(result, r0), instr); 2149 return MarkAsCall(DefineFixed(result, r0), instr);
2152 } 2150 }
2153 2151
2154 2152
2155 } } // namespace v8::internal 2153 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698