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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 10332317: Fix build and test failures from packed array optimizations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | « no previous file | test/mjsunit/unbox-double-arrays.js » ('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 4041 matching lines...) Expand 10 before | Expand all | Expand 10 after
4052 Register scratch, 4052 Register scratch,
4053 Label* no_map_match) { 4053 Label* no_map_match) {
4054 // Load the global or builtins object from the current context. 4054 // Load the global or builtins object from the current context.
4055 movq(scratch, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX))); 4055 movq(scratch, Operand(rsi, Context::SlotOffset(Context::GLOBAL_INDEX)));
4056 movq(scratch, FieldOperand(scratch, GlobalObject::kGlobalContextOffset)); 4056 movq(scratch, FieldOperand(scratch, GlobalObject::kGlobalContextOffset));
4057 4057
4058 // Check that the function's map is the same as the expected cached map. 4058 // Check that the function's map is the same as the expected cached map.
4059 movq(scratch, Operand(scratch, 4059 movq(scratch, Operand(scratch,
4060 Context::SlotOffset(Context::JS_ARRAY_MAPS_INDEX))); 4060 Context::SlotOffset(Context::JS_ARRAY_MAPS_INDEX)));
4061 4061
4062 size_t offset = expected_kind * kPointerSize + 4062 int offset = expected_kind * kPointerSize +
4063 FixedArrayBase::kHeaderSize; 4063 FixedArrayBase::kHeaderSize;
4064 cmpq(map_in_out, FieldOperand(scratch, offset)); 4064 cmpq(map_in_out, FieldOperand(scratch, offset));
4065 j(not_equal, no_map_match); 4065 j(not_equal, no_map_match);
4066 4066
4067 // Use the transitioned cached map. 4067 // Use the transitioned cached map.
4068 offset = transitioned_kind * kPointerSize + 4068 offset = transitioned_kind * kPointerSize +
4069 FixedArrayBase::kHeaderSize; 4069 FixedArrayBase::kHeaderSize;
4070 movq(map_in_out, FieldOperand(scratch, offset)); 4070 movq(map_in_out, FieldOperand(scratch, offset));
4071 } 4071 }
4072 4072
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
4446 bind(&check_prototype); 4446 bind(&check_prototype);
4447 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset)); 4447 movq(rcx, FieldOperand(rbx, Map::kPrototypeOffset));
4448 cmpq(rcx, null_value); 4448 cmpq(rcx, null_value);
4449 j(not_equal, &next); 4449 j(not_equal, &next);
4450 } 4450 }
4451 4451
4452 4452
4453 } } // namespace v8::internal 4453 } } // namespace v8::internal
4454 4454
4455 #endif // V8_TARGET_ARCH_X64 4455 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/unbox-double-arrays.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698