OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3271 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol())); | 3271 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol())); |
3272 __ j(not_equal, &miss); | 3272 __ j(not_equal, &miss); |
3273 } | 3273 } |
3274 | 3274 |
3275 StubCompiler::GenerateLoadArrayLength(masm, edx, eax, &miss); | 3275 StubCompiler::GenerateLoadArrayLength(masm, edx, eax, &miss); |
3276 __ bind(&miss); | 3276 __ bind(&miss); |
3277 StubCompiler::GenerateLoadMiss(masm, kind()); | 3277 StubCompiler::GenerateLoadMiss(masm, kind()); |
3278 } | 3278 } |
3279 | 3279 |
3280 | 3280 |
| 3281 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
| 3282 // ----------- S t a t e ------------- |
| 3283 // -- ecx : name |
| 3284 // -- edx : receiver |
| 3285 // -- esp[0] : return address |
| 3286 // ----------------------------------- |
| 3287 Label miss; |
| 3288 |
| 3289 if (kind() == Code::KEYED_LOAD_IC) { |
| 3290 __ cmp(ecx, Immediate(masm->isolate()->factory()->prototype_symbol())); |
| 3291 __ j(not_equal, &miss); |
| 3292 } |
| 3293 |
| 3294 StubCompiler::GenerateLoadFunctionPrototype(masm, edx, eax, ebx, &miss); |
| 3295 __ bind(&miss); |
| 3296 StubCompiler::GenerateLoadMiss(masm, kind()); |
| 3297 } |
| 3298 |
| 3299 |
3281 void StringLengthStub::Generate(MacroAssembler* masm) { | 3300 void StringLengthStub::Generate(MacroAssembler* masm) { |
3282 // ----------- S t a t e ------------- | 3301 // ----------- S t a t e ------------- |
3283 // -- ecx : name | 3302 // -- ecx : name |
3284 // -- edx : receiver | 3303 // -- edx : receiver |
3285 // -- esp[0] : return address | 3304 // -- esp[0] : return address |
3286 // ----------------------------------- | 3305 // ----------------------------------- |
3287 Label miss; | 3306 Label miss; |
3288 | 3307 |
3289 if (kind() == Code::KEYED_LOAD_IC) { | 3308 if (kind() == Code::KEYED_LOAD_IC) { |
3290 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol())); | 3309 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol())); |
(...skipping 4284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7575 // Restore ecx. | 7594 // Restore ecx. |
7576 __ pop(ecx); | 7595 __ pop(ecx); |
7577 __ ret(0); | 7596 __ ret(0); |
7578 } | 7597 } |
7579 | 7598 |
7580 #undef __ | 7599 #undef __ |
7581 | 7600 |
7582 } } // namespace v8::internal | 7601 } } // namespace v8::internal |
7583 | 7602 |
7584 #endif // V8_TARGET_ARCH_IA32 | 7603 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |