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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 6664001: [Isolates] Merge (7083,7111] from bleeding_edge. (Closed)
Patch Set: Created 9 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
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/ic-arm.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 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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 __ b(nested_statement.break_target()); 871 __ b(nested_statement.break_target());
872 } else { 872 } else {
873 __ b(default_clause->body_target()->entry_label()); 873 __ b(default_clause->body_target()->entry_label());
874 } 874 }
875 875
876 // Compile all the case bodies. 876 // Compile all the case bodies.
877 for (int i = 0; i < clauses->length(); i++) { 877 for (int i = 0; i < clauses->length(); i++) {
878 Comment cmnt(masm_, "[ Case body"); 878 Comment cmnt(masm_, "[ Case body");
879 CaseClause* clause = clauses->at(i); 879 CaseClause* clause = clauses->at(i);
880 __ bind(clause->body_target()->entry_label()); 880 __ bind(clause->body_target()->entry_label());
881 PrepareForBailoutForId(clause->EntryId(), NO_REGISTERS);
881 VisitStatements(clause->statements()); 882 VisitStatements(clause->statements());
882 } 883 }
883 884
884 __ bind(nested_statement.break_target()); 885 __ bind(nested_statement.break_target());
885 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS); 886 PrepareForBailoutForId(stmt->ExitId(), NO_REGISTERS);
886 } 887 }
887 888
888 889
889 void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { 890 void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
890 Comment cmnt(masm_, "[ ForInStatement"); 891 Comment cmnt(masm_, "[ ForInStatement");
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after
2864 __ bind(&done); 2865 __ bind(&done);
2865 context()->Plug(r0); 2866 context()->Plug(r0);
2866 } 2867 }
2867 2868
2868 2869
2869 void FullCodeGenerator::EmitMathPow(ZoneList<Expression*>* args) { 2870 void FullCodeGenerator::EmitMathPow(ZoneList<Expression*>* args) {
2870 // Load the arguments on the stack and call the runtime function. 2871 // Load the arguments on the stack and call the runtime function.
2871 ASSERT(args->length() == 2); 2872 ASSERT(args->length() == 2);
2872 VisitForStackValue(args->at(0)); 2873 VisitForStackValue(args->at(0));
2873 VisitForStackValue(args->at(1)); 2874 VisitForStackValue(args->at(1));
2874 __ CallRuntime(Runtime::kMath_pow, 2); 2875 MathPowStub stub;
2876 __ CallStub(&stub);
2875 context()->Plug(r0); 2877 context()->Plug(r0);
2876 } 2878 }
2877 2879
2878 2880
2879 void FullCodeGenerator::EmitSetValueOf(ZoneList<Expression*>* args) { 2881 void FullCodeGenerator::EmitSetValueOf(ZoneList<Expression*>* args) {
2880 ASSERT(args->length() == 2); 2882 ASSERT(args->length() == 2);
2881 2883
2882 VisitForStackValue(args->at(0)); // Load the object. 2884 VisitForStackValue(args->at(0)); // Load the object.
2883 VisitForAccumulatorValue(args->at(1)); // Load the value. 2885 VisitForAccumulatorValue(args->at(1)); // Load the value.
2884 __ pop(r1); // r0 = value. r1 = object. 2886 __ pop(r1); // r0 = value. r1 = object.
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
4295 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4297 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4296 __ add(pc, r1, Operand(masm_->CodeObject())); 4298 __ add(pc, r1, Operand(masm_->CodeObject()));
4297 } 4299 }
4298 4300
4299 4301
4300 #undef __ 4302 #undef __
4301 4303
4302 } } // namespace v8::internal 4304 } } // namespace v8::internal
4303 4305
4304 #endif // V8_TARGET_ARCH_ARM 4306 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698