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

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

Issue 6580038: [Isolates] Merge from bleeding_edge, revisions 5934-6100. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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 | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 default: 2358 default:
2359 UNREACHABLE(); 2359 UNREACHABLE();
2360 return no_condition; 2360 return no_condition;
2361 } 2361 }
2362 } 2362 }
2363 2363
2364 2364
2365 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { 2365 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) {
2366 HandleScope scope; 2366 HandleScope scope;
2367 Handle<Code> rewritten; 2367 Handle<Code> rewritten;
2368 #ifdef DEBUG
2369 State previous_state = GetState(); 2368 State previous_state = GetState();
2370 #endif 2369 State state = TargetState(previous_state, false, x, y);
2371 State state = TargetState(x, y);
2372 if (state == GENERIC) { 2370 if (state == GENERIC) {
2373 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS, r1, r0); 2371 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS, r1, r0);
2374 rewritten = stub.GetCode(); 2372 rewritten = stub.GetCode();
2375 } else { 2373 } else {
2376 ICCompareStub stub(op_, state); 2374 ICCompareStub stub(op_, state);
2377 rewritten = stub.GetCode(); 2375 rewritten = stub.GetCode();
2378 } 2376 }
2379 set_target(*rewritten); 2377 set_target(*rewritten);
2380 2378
2381 #ifdef DEBUG 2379 #ifdef DEBUG
2382 if (FLAG_trace_ic) { 2380 if (FLAG_trace_ic) {
2383 PrintF("[CompareIC (%s->%s)#%s]\n", 2381 PrintF("[CompareIC (%s->%s)#%s]\n",
2384 GetStateName(previous_state), 2382 GetStateName(previous_state),
2385 GetStateName(state), 2383 GetStateName(state),
2386 Token::Name(op_)); 2384 Token::Name(op_));
2387 } 2385 }
2388 #endif 2386 #endif
2389 } 2387 }
2390 2388
2389
2390 void PatchInlinedSmiCode(Address address) {
2391 UNIMPLEMENTED();
2392 }
2393
2394
2391 } } // namespace v8::internal 2395 } } // namespace v8::internal
2392 2396
2393 #endif // V8_TARGET_ARCH_ARM 2397 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm/lithium-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698