| OLD | NEW |
| 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 2349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2360 default: | 2360 default: |
| 2361 UNREACHABLE(); | 2361 UNREACHABLE(); |
| 2362 return no_condition; | 2362 return no_condition; |
| 2363 } | 2363 } |
| 2364 } | 2364 } |
| 2365 | 2365 |
| 2366 | 2366 |
| 2367 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { | 2367 void CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { |
| 2368 HandleScope scope; | 2368 HandleScope scope; |
| 2369 Handle<Code> rewritten; | 2369 Handle<Code> rewritten; |
| 2370 #ifdef DEBUG | |
| 2371 State previous_state = GetState(); | 2370 State previous_state = GetState(); |
| 2372 #endif | 2371 State state = TargetState(previous_state, false, x, y); |
| 2373 State state = TargetState(x, y); | |
| 2374 if (state == GENERIC) { | 2372 if (state == GENERIC) { |
| 2375 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS, r1, r0); | 2373 CompareStub stub(GetCondition(), strict(), NO_COMPARE_FLAGS, r1, r0); |
| 2376 rewritten = stub.GetCode(); | 2374 rewritten = stub.GetCode(); |
| 2377 } else { | 2375 } else { |
| 2378 ICCompareStub stub(op_, state); | 2376 ICCompareStub stub(op_, state); |
| 2379 rewritten = stub.GetCode(); | 2377 rewritten = stub.GetCode(); |
| 2380 } | 2378 } |
| 2381 set_target(*rewritten); | 2379 set_target(*rewritten); |
| 2382 | 2380 |
| 2383 #ifdef DEBUG | 2381 #ifdef DEBUG |
| 2384 if (FLAG_trace_ic) { | 2382 if (FLAG_trace_ic) { |
| 2385 PrintF("[CompareIC (%s->%s)#%s]\n", | 2383 PrintF("[CompareIC (%s->%s)#%s]\n", |
| 2386 GetStateName(previous_state), | 2384 GetStateName(previous_state), |
| 2387 GetStateName(state), | 2385 GetStateName(state), |
| 2388 Token::Name(op_)); | 2386 Token::Name(op_)); |
| 2389 } | 2387 } |
| 2390 #endif | 2388 #endif |
| 2391 } | 2389 } |
| 2392 | 2390 |
| 2391 |
| 2392 void PatchInlinedSmiCode(Address address) { |
| 2393 UNIMPLEMENTED(); |
| 2394 } |
| 2395 |
| 2396 |
| 2393 } } // namespace v8::internal | 2397 } } // namespace v8::internal |
| 2394 | 2398 |
| 2395 #endif // V8_TARGET_ARCH_ARM | 2399 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |