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

Unified Diff: third_party/WebKit/JavaScriptCore/jit/JIT.cpp

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/JavaScriptCore/jit/JIT.cpp
===================================================================
--- third_party/WebKit/JavaScriptCore/jit/JIT.cpp (revision 11154)
+++ third_party/WebKit/JavaScriptCore/jit/JIT.cpp (working copy)
@@ -304,8 +304,17 @@
switch (opcodeID) {
case op_mov: {
- emitGetVirtualRegister(currentInstruction[2].u.operand, regT0);
- emitPutVirtualRegister(currentInstruction[1].u.operand);
+ int src = currentInstruction[2].u.operand;
+ int dst = currentInstruction[1].u.operand;
+
+ if (m_codeBlock->isConstantRegisterIndex(src)) {
+ storePtr(ImmPtr(JSValuePtr::encode(getConstantOperand(src))), Address(callFrameRegister, dst * sizeof(Register)));
+ if (dst == m_lastResultBytecodeRegister)
+ killLastResultRegister();
+ } else {
+ emitGetVirtualRegister(src, regT0);
+ emitPutVirtualRegister(dst);
+ }
NEXT_OPCODE(op_mov);
}
case op_add: {
« no previous file with comments | « third_party/WebKit/JavaScriptCore/assembler/X86Assembler.h ('k') | third_party/WebKit/JavaScriptCore/wtf/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698