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

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

Issue 11028027: Revert trunk to bleeding_edge at r12484 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 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/ia32/macro-assembler-ia32.h ('k') | src/ic.h » ('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 2558 matching lines...) Expand 10 before | Expand all | Expand 10 after
2569 // will not return here 2569 // will not return here
2570 int3(); 2570 int3();
2571 } 2571 }
2572 2572
2573 2573
2574 void MacroAssembler::LoadInstanceDescriptors(Register map, 2574 void MacroAssembler::LoadInstanceDescriptors(Register map,
2575 Register descriptors) { 2575 Register descriptors) {
2576 Register temp = descriptors; 2576 Register temp = descriptors;
2577 mov(temp, FieldOperand(map, Map::kTransitionsOrBackPointerOffset)); 2577 mov(temp, FieldOperand(map, Map::kTransitionsOrBackPointerOffset));
2578 2578
2579 Label ok, fail, load_from_back_pointer; 2579 Label ok, fail;
2580 CheckMap(temp, 2580 CheckMap(temp,
2581 isolate()->factory()->fixed_array_map(), 2581 isolate()->factory()->fixed_array_map(),
2582 &fail, 2582 &fail,
2583 DONT_DO_SMI_CHECK); 2583 DONT_DO_SMI_CHECK);
2584 mov(temp, FieldOperand(temp, TransitionArray::kDescriptorsPointerOffset)); 2584 mov(descriptors, FieldOperand(temp, TransitionArray::kDescriptorsOffset));
2585 mov(descriptors, FieldOperand(temp, JSGlobalPropertyCell::kValueOffset));
2586 jmp(&ok); 2585 jmp(&ok);
2587
2588 bind(&fail); 2586 bind(&fail);
2589 cmp(temp, isolate()->factory()->undefined_value());
2590 j(not_equal, &load_from_back_pointer, Label::kNear);
2591 mov(descriptors, isolate()->factory()->empty_descriptor_array()); 2587 mov(descriptors, isolate()->factory()->empty_descriptor_array());
2592 jmp(&ok);
2593
2594 bind(&load_from_back_pointer);
2595 mov(temp, FieldOperand(temp, Map::kTransitionsOrBackPointerOffset));
2596 mov(temp, FieldOperand(temp, TransitionArray::kDescriptorsPointerOffset));
2597 mov(descriptors, FieldOperand(temp, JSGlobalPropertyCell::kValueOffset));
2598
2599 bind(&ok); 2588 bind(&ok);
2600 } 2589 }
2601 2590
2602 2591
2603 void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) {
2604 mov(dst, FieldOperand(map, Map::kBitField3Offset));
2605 DecodeField<Map::NumberOfOwnDescriptorsBits>(dst);
2606 }
2607
2608
2609 void MacroAssembler::LoadPowerOf2(XMMRegister dst, 2592 void MacroAssembler::LoadPowerOf2(XMMRegister dst,
2610 Register scratch, 2593 Register scratch,
2611 int power) { 2594 int power) {
2612 ASSERT(is_uintn(power + HeapNumber::kExponentBias, 2595 ASSERT(is_uintn(power + HeapNumber::kExponentBias,
2613 HeapNumber::kExponentBits)); 2596 HeapNumber::kExponentBits));
2614 mov(scratch, Immediate(power + HeapNumber::kExponentBias)); 2597 mov(scratch, Immediate(power + HeapNumber::kExponentBias));
2615 movd(dst, scratch); 2598 movd(dst, scratch);
2616 psllq(dst, HeapNumber::kMantissaBits); 2599 psllq(dst, HeapNumber::kMantissaBits);
2617 } 2600 }
2618 2601
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
2988 j(not_equal, call_runtime); 2971 j(not_equal, call_runtime);
2989 2972
2990 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset)); 2973 mov(ecx, FieldOperand(ebx, Map::kPrototypeOffset));
2991 cmp(ecx, isolate()->factory()->null_value()); 2974 cmp(ecx, isolate()->factory()->null_value());
2992 j(not_equal, &next); 2975 j(not_equal, &next);
2993 } 2976 }
2994 2977
2995 } } // namespace v8::internal 2978 } } // namespace v8::internal
2996 2979
2997 #endif // V8_TARGET_ARCH_IA32 2980 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/ic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698