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

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

Issue 6976028: Reduced the code ping-pong between the full code generator and contexts a bit. (Closed) Base URL: http://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/full-codegen.h » ('j') | src/full-codegen.h » ('J')
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 4005 matching lines...) Expand 10 before | Expand all | Expand 10 after
4016 __ bind(&slow); 4016 __ bind(&slow);
4017 __ mov(r0, Operand(proxy->name())); 4017 __ mov(r0, Operand(proxy->name()));
4018 __ Push(cp, r0); 4018 __ Push(cp, r0);
4019 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2); 4019 __ CallRuntime(Runtime::kLoadContextSlotNoReferenceError, 2);
4020 PrepareForBailout(expr, TOS_REG); 4020 PrepareForBailout(expr, TOS_REG);
4021 __ bind(&done); 4021 __ bind(&done);
4022 4022
4023 context()->Plug(r0); 4023 context()->Plug(r0);
4024 } else { 4024 } else {
4025 // This expression cannot throw a reference error at the top level. 4025 // This expression cannot throw a reference error at the top level.
4026 context()->HandleExpression(expr); 4026 VisitInSameContext(expr);
4027 } 4027 }
4028 } 4028 }
4029 4029
4030 4030
4031 bool FullCodeGenerator::TryLiteralCompare(Token::Value op, 4031 bool FullCodeGenerator::TryLiteralCompare(Token::Value op,
4032 Expression* left, 4032 Expression* left,
4033 Expression* right, 4033 Expression* right,
4034 Label* if_true, 4034 Label* if_true,
4035 Label* if_false, 4035 Label* if_false,
4036 Label* fall_through) { 4036 Label* fall_through) {
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
4366 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4366 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4367 __ add(pc, r1, Operand(masm_->CodeObject())); 4367 __ add(pc, r1, Operand(masm_->CodeObject()));
4368 } 4368 }
4369 4369
4370 4370
4371 #undef __ 4371 #undef __
4372 4372
4373 } } // namespace v8::internal 4373 } } // namespace v8::internal
4374 4374
4375 #endif // V8_TARGET_ARCH_ARM 4375 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen.h » ('j') | src/full-codegen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698