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

Side by Side Diff: src/ia32/ic-ia32.cc

Issue 149175: Fix think in IC code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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/ic-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Check for the absence of an interceptor. 63 // Check for the absence of an interceptor.
64 // Load the map into r0. 64 // Load the map into r0.
65 __ mov(r0, FieldOperand(r1, JSObject::kMapOffset)); 65 __ mov(r0, FieldOperand(r1, JSObject::kMapOffset));
66 // Test the has_named_interceptor bit in the map. 66 // Test the has_named_interceptor bit in the map.
67 __ test(FieldOperand(r0, Map::kInstanceAttributesOffset), 67 __ test(FieldOperand(r0, Map::kInstanceAttributesOffset),
68 Immediate(1 << (Map::kHasNamedInterceptor + (3 * 8)))); 68 Immediate(1 << (Map::kHasNamedInterceptor + (3 * 8))));
69 69
70 // Jump to miss if the interceptor bit is set. 70 // Jump to miss if the interceptor bit is set.
71 __ j(not_zero, miss_label, not_taken); 71 __ j(not_zero, miss_label, not_taken);
72 72
73 // Bail out if we have a JS global object. 73 // Bail out if we have a JS global proxy object.
74 __ movzx_b(r0, FieldOperand(r0, Map::kInstanceTypeOffset)); 74 __ movzx_b(r0, FieldOperand(r0, Map::kInstanceTypeOffset));
75 __ cmp(r0, JS_GLOBAL_PROXY_TYPE); 75 __ cmp(r0, JS_GLOBAL_PROXY_TYPE);
76 __ j(equal, miss_label, not_taken); 76 __ j(equal, miss_label, not_taken);
77 77
78 // Check that the properties array is a dictionary. 78 // Check that the properties array is a dictionary.
79 __ mov(r0, FieldOperand(r1, JSObject::kPropertiesOffset)); 79 __ mov(r0, FieldOperand(r1, JSObject::kPropertiesOffset));
80 __ cmp(FieldOperand(r0, HeapObject::kMapOffset), 80 __ cmp(FieldOperand(r0, HeapObject::kMapOffset),
81 Immediate(Factory::hash_table_map())); 81 Immediate(Factory::hash_table_map()));
82 __ j(not_equal, miss_label); 82 __ j(not_equal, miss_label);
83 83
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 966
967 // Do tail-call to runtime routine. 967 // Do tail-call to runtime routine.
968 __ TailCallRuntime( 968 __ TailCallRuntime(
969 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3); 969 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3);
970 } 970 }
971 971
972 #undef __ 972 #undef __
973 973
974 974
975 } } // namespace v8::internal 975 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698