OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2473 | 2473 |
2474 // Check for deleted property if property can actually be deleted. | 2474 // Check for deleted property if property can actually be deleted. |
2475 if (!is_dont_delete) { | 2475 if (!is_dont_delete) { |
2476 __ cmp(ebx, Factory::the_hole_value()); | 2476 __ cmp(ebx, Factory::the_hole_value()); |
2477 __ j(equal, &miss, not_taken); | 2477 __ j(equal, &miss, not_taken); |
2478 } else if (FLAG_debug_code) { | 2478 } else if (FLAG_debug_code) { |
2479 __ cmp(ebx, Factory::the_hole_value()); | 2479 __ cmp(ebx, Factory::the_hole_value()); |
2480 __ Check(not_equal, "DontDelete cells can't contain the hole"); | 2480 __ Check(not_equal, "DontDelete cells can't contain the hole"); |
2481 } | 2481 } |
2482 | 2482 |
2483 __ IncrementCounter(&Counters::named_load_global_inline, 1); | 2483 __ IncrementCounter(&Counters::named_load_global_stub, 1); |
2484 __ mov(eax, ebx); | 2484 __ mov(eax, ebx); |
2485 __ ret(0); | 2485 __ ret(0); |
2486 | 2486 |
2487 __ bind(&miss); | 2487 __ bind(&miss); |
2488 __ IncrementCounter(&Counters::named_load_global_inline_miss, 1); | 2488 __ IncrementCounter(&Counters::named_load_global_stub_miss, 1); |
2489 GenerateLoadMiss(masm(), Code::LOAD_IC); | 2489 GenerateLoadMiss(masm(), Code::LOAD_IC); |
2490 | 2490 |
2491 // Return the generated code. | 2491 // Return the generated code. |
2492 return GetCode(NORMAL, name); | 2492 return GetCode(NORMAL, name); |
2493 } | 2493 } |
2494 | 2494 |
2495 | 2495 |
2496 Object* KeyedLoadStubCompiler::CompileLoadField(String* name, | 2496 Object* KeyedLoadStubCompiler::CompileLoadField(String* name, |
2497 JSObject* receiver, | 2497 JSObject* receiver, |
2498 JSObject* holder, | 2498 JSObject* holder, |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2826 // Return the generated code. | 2826 // Return the generated code. |
2827 return GetCode(); | 2827 return GetCode(); |
2828 } | 2828 } |
2829 | 2829 |
2830 | 2830 |
2831 #undef __ | 2831 #undef __ |
2832 | 2832 |
2833 } } // namespace v8::internal | 2833 } } // namespace v8::internal |
2834 | 2834 |
2835 #endif // V8_TARGET_ARCH_IA32 | 2835 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |