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

Side by Side Diff: JavaScriptCore/jit/JITPropertyAccess.cpp

Issue 28077: WebKit side of merge from r41149 to r41181. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/WebKit/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « JavaScriptCore/jit/JITCall.cpp ('k') | JavaScriptCore/jit/JITStubs.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 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 298 }
299 299
300 void JIT::privateCompilePatchGetArrayLength(ProcessorReturnAddress returnAddress ) 300 void JIT::privateCompilePatchGetArrayLength(ProcessorReturnAddress returnAddress )
301 { 301 {
302 StructureStubInfo* stubInfo = &m_codeBlock->getStubInfo(returnAddress); 302 StructureStubInfo* stubInfo = &m_codeBlock->getStubInfo(returnAddress);
303 303
304 // We don't want to patch more than once - in future go to cti_op_put_by_id_ generic. 304 // We don't want to patch more than once - in future go to cti_op_put_by_id_ generic.
305 returnAddress.relinkCallerToFunction(JITStubs::cti_op_get_by_id_array_fail); 305 returnAddress.relinkCallerToFunction(JITStubs::cti_op_get_by_id_array_fail);
306 306
307 // Check eax is an array 307 // Check eax is an array
308 Jump failureCases1 = branchPtr(NotEqual, Address(regT0), ImmPtr(m_interprete r->m_jsArrayVptr)); 308 Jump failureCases1 = branchPtr(NotEqual, Address(regT0), ImmPtr(m_globalData ->jsArrayVPtr));
309 309
310 // Checks out okay! - get the length from the storage 310 // Checks out okay! - get the length from the storage
311 loadPtr(Address(regT0, FIELD_OFFSET(JSArray, m_storage)), regT2); 311 loadPtr(Address(regT0, FIELD_OFFSET(JSArray, m_storage)), regT2);
312 load32(Address(regT2, FIELD_OFFSET(ArrayStorage, m_length)), regT2); 312 load32(Address(regT2, FIELD_OFFSET(ArrayStorage, m_length)), regT2);
313 313
314 Jump failureCases2 = branch32(Above, regT2, Imm32(JSImmediate::maxImmediateI nt)); 314 Jump failureCases2 = branch32(Above, regT2, Imm32(JSImmediate::maxImmediateI nt));
315 315
316 emitFastArithIntToImmNoCheck(regT2, regT0); 316 emitFastArithIntToImmNoCheck(regT2, regT0);
317 Jump success = jump(); 317 Jump success = jump();
318 318
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 stubInfo->stubRoutine = patchBuffer.entry(); 694 stubInfo->stubRoutine = patchBuffer.entry();
695 695
696 returnAddress.relinkCallerToFunction(code); 696 returnAddress.relinkCallerToFunction(code);
697 } 697 }
698 698
699 #endif 699 #endif
700 700
701 } // namespace JSC 701 } // namespace JSC
702 702
703 #endif // ENABLE(JIT) 703 #endif // ENABLE(JIT)
OLDNEW
« no previous file with comments | « JavaScriptCore/jit/JITCall.cpp ('k') | JavaScriptCore/jit/JITStubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698