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

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

Issue 6992072: Implement set trap for proxies, and revamp class hierarchy in preparation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review. Created 9 years, 6 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/x64/lithium-codegen-x64.cc ('k') | test/mjsunit/harmony/proxies.js » ('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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 const int kInterceptorOrAccessCheckNeededMask = 99 const int kInterceptorOrAccessCheckNeededMask =
100 (1 << Map::kHasNamedInterceptor) | (1 << Map::kIsAccessCheckNeeded); 100 (1 << Map::kHasNamedInterceptor) | (1 << Map::kIsAccessCheckNeeded);
101 101
102 // Bail out if the receiver has a named interceptor or requires access checks. 102 // Bail out if the receiver has a named interceptor or requires access checks.
103 __ testb(FieldOperand(r0, Map::kBitFieldOffset), 103 __ testb(FieldOperand(r0, Map::kBitFieldOffset),
104 Immediate(kInterceptorOrAccessCheckNeededMask)); 104 Immediate(kInterceptorOrAccessCheckNeededMask));
105 __ j(not_zero, miss_label); 105 __ j(not_zero, miss_label);
106 106
107 // Check that receiver is a JSObject. 107 // Check that receiver is a JSObject.
108 __ CmpInstanceType(r0, FIRST_JS_OBJECT_TYPE); 108 __ CmpInstanceType(r0, FIRST_SPEC_OBJECT_TYPE);
109 __ j(below, miss_label); 109 __ j(below, miss_label);
110 110
111 // Load properties array. 111 // Load properties array.
112 Register properties = r0; 112 Register properties = r0;
113 __ movq(properties, FieldOperand(receiver, JSObject::kPropertiesOffset)); 113 __ movq(properties, FieldOperand(receiver, JSObject::kPropertiesOffset));
114 114
115 // Check that the properties array is a dictionary. 115 // Check that the properties array is a dictionary.
116 __ CompareRoot(FieldOperand(properties, HeapObject::kMapOffset), 116 __ CompareRoot(FieldOperand(properties, HeapObject::kMapOffset),
117 Heap::kHashTableMapRootIndex); 117 Heap::kHashTableMapRootIndex);
118 __ j(not_equal, miss_label); 118 __ j(not_equal, miss_label);
(...skipping 3511 matching lines...) Expand 10 before | Expand all | Expand 10 after
3630 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); 3630 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric();
3631 __ jmp(ic_force_generic, RelocInfo::CODE_TARGET); 3631 __ jmp(ic_force_generic, RelocInfo::CODE_TARGET);
3632 } 3632 }
3633 3633
3634 3634
3635 #undef __ 3635 #undef __
3636 3636
3637 } } // namespace v8::internal 3637 } } // namespace v8::internal
3638 3638
3639 #endif // V8_TARGET_ARCH_X64 3639 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/mjsunit/harmony/proxies.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698