| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2583 } | 2583 } |
| 2584 | 2584 |
| 2585 | 2585 |
| 2586 void FullCodeGenerator::EmitGetFromCache(ZoneList<Expression*>* args) { | 2586 void FullCodeGenerator::EmitGetFromCache(ZoneList<Expression*>* args) { |
| 2587 ASSERT_EQ(2, args->length()); | 2587 ASSERT_EQ(2, args->length()); |
| 2588 | 2588 |
| 2589 ASSERT_NE(NULL, args->at(0)->AsLiteral()); | 2589 ASSERT_NE(NULL, args->at(0)->AsLiteral()); |
| 2590 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->handle()))->value(); | 2590 int cache_id = Smi::cast(*(args->at(0)->AsLiteral()->handle()))->value(); |
| 2591 | 2591 |
| 2592 Handle<FixedArray> jsfunction_result_caches( | 2592 Handle<FixedArray> jsfunction_result_caches( |
| 2593 Top::global_context()->jsfunction_result_caches()); | 2593 Isolate::Current()->global_context()->jsfunction_result_caches()); |
| 2594 if (jsfunction_result_caches->length() <= cache_id) { | 2594 if (jsfunction_result_caches->length() <= cache_id) { |
| 2595 __ Abort("Attempt to use undefined cache."); | 2595 __ Abort("Attempt to use undefined cache."); |
| 2596 __ mov(eax, Factory::undefined_value()); | 2596 __ mov(eax, Factory::undefined_value()); |
| 2597 Apply(context_, eax); | 2597 Apply(context_, eax); |
| 2598 return; | 2598 return; |
| 2599 } | 2599 } |
| 2600 | 2600 |
| 2601 VisitForValue(args->at(1), kAccumulator); | 2601 VisitForValue(args->at(1), kAccumulator); |
| 2602 | 2602 |
| 2603 Register key = eax; | 2603 Register key = eax; |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3251 // And return. | 3251 // And return. |
| 3252 __ ret(0); | 3252 __ ret(0); |
| 3253 } | 3253 } |
| 3254 | 3254 |
| 3255 | 3255 |
| 3256 #undef __ | 3256 #undef __ |
| 3257 | 3257 |
| 3258 } } // namespace v8::internal | 3258 } } // namespace v8::internal |
| 3259 | 3259 |
| 3260 #endif // V8_TARGET_ARCH_IA32 | 3260 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |