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

Side by Side Diff: src/objects.cc

Issue 8055: Fix some style issues. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 2 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/codegen-ia32.cc ('k') | src/parser.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 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 2399 matching lines...) Expand 10 before | Expand all | Expand 10 after
2410 // Please note instance_type and instance_size are set when allocated. 2410 // Please note instance_type and instance_size are set when allocated.
2411 Map::cast(result)->set_inobject_properties(inobject_properties()); 2411 Map::cast(result)->set_inobject_properties(inobject_properties());
2412 Map::cast(result)->set_unused_property_fields(unused_property_fields()); 2412 Map::cast(result)->set_unused_property_fields(unused_property_fields());
2413 Map::cast(result)->set_bit_field(bit_field()); 2413 Map::cast(result)->set_bit_field(bit_field());
2414 Map::cast(result)->ClearCodeCache(); 2414 Map::cast(result)->ClearCodeCache();
2415 return result; 2415 return result;
2416 } 2416 }
2417 2417
2418 2418
2419 Object* Map::CopyDropTransitions() { 2419 Object* Map::CopyDropTransitions() {
2420 Object *new_map = Copy(); 2420 Object* new_map = Copy();
2421 if (new_map->IsFailure()) return new_map; 2421 if (new_map->IsFailure()) return new_map;
2422 Object* descriptors = instance_descriptors()->RemoveTransitions(); 2422 Object* descriptors = instance_descriptors()->RemoveTransitions();
2423 if (descriptors->IsFailure()) return descriptors; 2423 if (descriptors->IsFailure()) return descriptors;
2424 cast(new_map)->set_instance_descriptors(DescriptorArray::cast(descriptors)); 2424 cast(new_map)->set_instance_descriptors(DescriptorArray::cast(descriptors));
2425 return cast(new_map); 2425 return cast(new_map);
2426 } 2426 }
2427 2427
2428 2428
2429 Object* Map::UpdateCodeCache(String* name, Code* code) { 2429 Object* Map::UpdateCodeCache(String* name, Code* code) {
2430 ASSERT(code->ic_state() == MONOMORPHIC); 2430 ASSERT(code->ic_state() == MONOMORPHIC);
(...skipping 4133 matching lines...) Expand 10 before | Expand all | Expand 10 after
6564 // No break point. 6564 // No break point.
6565 if (break_point_objects()->IsUndefined()) return 0; 6565 if (break_point_objects()->IsUndefined()) return 0;
6566 // Single beak point. 6566 // Single beak point.
6567 if (!break_point_objects()->IsFixedArray()) return 1; 6567 if (!break_point_objects()->IsFixedArray()) return 1;
6568 // Multiple break points. 6568 // Multiple break points.
6569 return FixedArray::cast(break_point_objects())->length(); 6569 return FixedArray::cast(break_point_objects())->length();
6570 } 6570 }
6571 6571
6572 6572
6573 } } // namespace v8::internal 6573 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen-ia32.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698