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

Side by Side Diff: test/cctest/test-alloc.cc

Issue 14622005: Free up 11 bits in fast-mode PropertyDetails by removing the enumeration-index. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/string-stream.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 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 FACTORY->NewStringFromAscii(Vector<const char>("get", 3)); 135 FACTORY->NewStringFromAscii(Vector<const char>("get", 3));
136 ASSERT(instance_descriptors->IsEmpty()); 136 ASSERT(instance_descriptors->IsEmpty());
137 137
138 Handle<DescriptorArray> new_descriptors = FACTORY->NewDescriptorArray(0, 1); 138 Handle<DescriptorArray> new_descriptors = FACTORY->NewDescriptorArray(0, 1);
139 139
140 v8::internal::DescriptorArray::WhitenessWitness witness(*new_descriptors); 140 v8::internal::DescriptorArray::WhitenessWitness witness(*new_descriptors);
141 map->set_instance_descriptors(*new_descriptors); 141 map->set_instance_descriptors(*new_descriptors);
142 142
143 CallbacksDescriptor d(*name, 143 CallbacksDescriptor d(*name,
144 *foreign, 144 *foreign,
145 static_cast<PropertyAttributes>(0), 145 static_cast<PropertyAttributes>(0));
146 v8::internal::PropertyDetails::kInitialIndex);
147 map->AppendDescriptor(&d, witness); 146 map->AppendDescriptor(&d, witness);
148 147
149 // Add the Foo constructor the global object. 148 // Add the Foo constructor the global object.
150 env->Global()->Set(v8::String::New("Foo"), v8::Utils::ToLocal(function)); 149 env->Global()->Set(v8::String::New("Foo"), v8::Utils::ToLocal(function));
151 // Call the accessor through JavaScript. 150 // Call the accessor through JavaScript.
152 v8::Handle<v8::Value> result = 151 v8::Handle<v8::Value> result =
153 v8::Script::Compile(v8::String::New("(new Foo).get"))->Run(); 152 v8::Script::Compile(v8::String::New("(new Foo).get"))->Run();
154 CHECK_EQ(42, result->Int32Value()); 153 CHECK_EQ(42, result->Int32Value());
155 env->Exit(); 154 env->Exit();
156 } 155 }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 blocks[index] = blocks.RemoveLast(); 219 blocks[index] = blocks.RemoveLast();
221 } else { 220 } else {
222 blocks.RemoveLast(); 221 blocks.RemoveLast();
223 } 222 }
224 } 223 }
225 } 224 }
226 225
227 code_range->TearDown(); 226 code_range->TearDown();
228 delete code_range; 227 delete code_range;
229 } 228 }
OLDNEW
« no previous file with comments | « src/string-stream.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698