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

Side by Side Diff: src/objects-inl.h

Issue 10310006: Merged r11479, r11483 into 3.9 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.9
Patch Set: Created 8 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/arm/stub-cache-arm.cc ('k') | src/version.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 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 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after
1376 } 1376 }
1377 1377
1378 1378
1379 void JSObject::initialize_properties() { 1379 void JSObject::initialize_properties() {
1380 ASSERT(!GetHeap()->InNewSpace(GetHeap()->empty_fixed_array())); 1380 ASSERT(!GetHeap()->InNewSpace(GetHeap()->empty_fixed_array()));
1381 WRITE_FIELD(this, kPropertiesOffset, GetHeap()->empty_fixed_array()); 1381 WRITE_FIELD(this, kPropertiesOffset, GetHeap()->empty_fixed_array());
1382 } 1382 }
1383 1383
1384 1384
1385 void JSObject::initialize_elements() { 1385 void JSObject::initialize_elements() {
1386 ASSERT(map()->has_fast_elements() || map()->has_fast_smi_only_elements()); 1386 ASSERT(map()->has_fast_elements() ||
1387 map()->has_fast_smi_only_elements() ||
1388 map()->has_fast_double_elements());
1387 ASSERT(!GetHeap()->InNewSpace(GetHeap()->empty_fixed_array())); 1389 ASSERT(!GetHeap()->InNewSpace(GetHeap()->empty_fixed_array()));
1388 WRITE_FIELD(this, kElementsOffset, GetHeap()->empty_fixed_array()); 1390 WRITE_FIELD(this, kElementsOffset, GetHeap()->empty_fixed_array());
1389 } 1391 }
1390 1392
1391 1393
1392 MaybeObject* JSObject::ResetElements() { 1394 MaybeObject* JSObject::ResetElements() {
1393 Object* obj; 1395 Object* obj;
1394 ElementsKind elements_kind = FLAG_smi_only_arrays 1396 ElementsKind elements_kind = FLAG_smi_only_arrays
1395 ? FAST_SMI_ONLY_ELEMENTS 1397 ? FAST_SMI_ONLY_ELEMENTS
1396 : FAST_ELEMENTS; 1398 : FAST_ELEMENTS;
(...skipping 3544 matching lines...) Expand 10 before | Expand all | Expand 10 after
4941 #undef WRITE_UINT32_FIELD 4943 #undef WRITE_UINT32_FIELD
4942 #undef READ_SHORT_FIELD 4944 #undef READ_SHORT_FIELD
4943 #undef WRITE_SHORT_FIELD 4945 #undef WRITE_SHORT_FIELD
4944 #undef READ_BYTE_FIELD 4946 #undef READ_BYTE_FIELD
4945 #undef WRITE_BYTE_FIELD 4947 #undef WRITE_BYTE_FIELD
4946 4948
4947 4949
4948 } } // namespace v8::internal 4950 } } // namespace v8::internal
4949 4951
4950 #endif // V8_OBJECTS_INL_H_ 4952 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698