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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 8341009: Make the GC aware of JSReceiver pointers in LookupResults. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Inlined LookupResult constructor and destructor. Created 9 years, 2 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/lithium-codegen-arm.cc ('k') | src/ast.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 2486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2497 // -- lr : return address 2497 // -- lr : return address
2498 // ----------------------------------- 2498 // -----------------------------------
2499 2499
2500 Label miss; 2500 Label miss;
2501 2501
2502 GenerateNameCheck(name, &miss); 2502 GenerateNameCheck(name, &miss);
2503 2503
2504 // Get the number of arguments. 2504 // Get the number of arguments.
2505 const int argc = arguments().immediate(); 2505 const int argc = arguments().immediate();
2506 2506
2507 LookupResult lookup; 2507 LookupResult lookup(isolate());
2508 LookupPostInterceptor(holder, name, &lookup); 2508 LookupPostInterceptor(holder, name, &lookup);
2509 2509
2510 // Get the receiver from the stack. 2510 // Get the receiver from the stack.
2511 __ ldr(r1, MemOperand(sp, argc * kPointerSize)); 2511 __ ldr(r1, MemOperand(sp, argc * kPointerSize));
2512 2512
2513 CallInterceptorCompiler compiler(this, arguments(), r2, extra_ic_state_); 2513 CallInterceptorCompiler compiler(this, arguments(), r2, extra_ic_state_);
2514 MaybeObject* result = compiler.Compile(masm(), 2514 MaybeObject* result = compiler.Compile(masm(),
2515 object, 2515 object,
2516 holder, 2516 holder,
2517 name, 2517 name,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
2901 MaybeObject* LoadStubCompiler::CompileLoadInterceptor(JSObject* object, 2901 MaybeObject* LoadStubCompiler::CompileLoadInterceptor(JSObject* object,
2902 JSObject* holder, 2902 JSObject* holder,
2903 String* name) { 2903 String* name) {
2904 // ----------- S t a t e ------------- 2904 // ----------- S t a t e -------------
2905 // -- r0 : receiver 2905 // -- r0 : receiver
2906 // -- r2 : name 2906 // -- r2 : name
2907 // -- lr : return address 2907 // -- lr : return address
2908 // ----------------------------------- 2908 // -----------------------------------
2909 Label miss; 2909 Label miss;
2910 2910
2911 LookupResult lookup; 2911 LookupResult lookup(isolate());
2912 LookupPostInterceptor(holder, name, &lookup); 2912 LookupPostInterceptor(holder, name, &lookup);
2913 GenerateLoadInterceptor(object, 2913 GenerateLoadInterceptor(object,
2914 holder, 2914 holder,
2915 &lookup, 2915 &lookup,
2916 r0, 2916 r0,
2917 r2, 2917 r2,
2918 r3, 2918 r3,
2919 r1, 2919 r1,
2920 r4, 2920 r4,
2921 name, 2921 name,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
3059 // -- lr : return address 3059 // -- lr : return address
3060 // -- r0 : key 3060 // -- r0 : key
3061 // -- r1 : receiver 3061 // -- r1 : receiver
3062 // ----------------------------------- 3062 // -----------------------------------
3063 Label miss; 3063 Label miss;
3064 3064
3065 // Check the key is the cached one. 3065 // Check the key is the cached one.
3066 __ cmp(r0, Operand(Handle<String>(name))); 3066 __ cmp(r0, Operand(Handle<String>(name)));
3067 __ b(ne, &miss); 3067 __ b(ne, &miss);
3068 3068
3069 LookupResult lookup; 3069 LookupResult lookup(isolate());
3070 LookupPostInterceptor(holder, name, &lookup); 3070 LookupPostInterceptor(holder, name, &lookup);
3071 GenerateLoadInterceptor(receiver, 3071 GenerateLoadInterceptor(receiver,
3072 holder, 3072 holder,
3073 &lookup, 3073 &lookup,
3074 r1, 3074 r1,
3075 r0, 3075 r0,
3076 r2, 3076 r2,
3077 r3, 3077 r3,
3078 r4, 3078 r4,
3079 name, 3079 name,
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
4460 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); 4460 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss();
4461 __ Jump(ic_miss, RelocInfo::CODE_TARGET); 4461 __ Jump(ic_miss, RelocInfo::CODE_TARGET);
4462 } 4462 }
4463 4463
4464 4464
4465 #undef __ 4465 #undef __
4466 4466
4467 } } // namespace v8::internal 4467 } } // namespace v8::internal
4468 4468
4469 #endif // V8_TARGET_ARCH_ARM 4469 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698