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

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

Issue 151019: Changed the global object representation (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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // name - holds the name of the property and is unchanges. 59 // name - holds the name of the property and is unchanges.
60 60
61 Label done; 61 Label done;
62 62
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 // Jump to miss if the interceptor bit is set. 70 // Jump to miss if the interceptor bit is set.
70 __ j(not_zero, miss_label, not_taken); 71 __ j(not_zero, miss_label, not_taken);
71 72
73 // Bail out if we have a JS global object.
74 __ movzx_b(r0, FieldOperand(r0, Map::kInstanceTypeOffset));
75 __ cmp(r0, JS_GLOBAL_PROXY_TYPE);
76 __ j(equal, miss_label, not_taken);
77
72 // Check that the properties array is a dictionary. 78 // Check that the properties array is a dictionary.
73 __ mov(r0, FieldOperand(r1, JSObject::kPropertiesOffset)); 79 __ mov(r0, FieldOperand(r1, JSObject::kPropertiesOffset));
74 __ cmp(FieldOperand(r0, HeapObject::kMapOffset), 80 __ cmp(FieldOperand(r0, HeapObject::kMapOffset),
75 Immediate(Factory::hash_table_map())); 81 Immediate(Factory::hash_table_map()));
76 __ j(not_equal, miss_label); 82 __ j(not_equal, miss_label);
77 83
78 // Compute the capacity mask. 84 // Compute the capacity mask.
79 const int kCapacityOffset = 85 const int kCapacityOffset =
80 Array::kHeaderSize + Dictionary::kCapacityIndex * kPointerSize; 86 Array::kHeaderSize + Dictionary::kCapacityIndex * kPointerSize;
81 __ mov(r2, FieldOperand(r0, kCapacityOffset)); 87 __ mov(r2, FieldOperand(r0, kCapacityOffset));
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 966
961 // Do tail-call to runtime routine. 967 // Do tail-call to runtime routine.
962 __ TailCallRuntime( 968 __ TailCallRuntime(
963 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3); 969 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3);
964 } 970 }
965 971
966 #undef __ 972 #undef __
967 973
968 974
969 } } // namespace v8::internal 975 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | test/cctest/test-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698