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

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

Issue 565034: Fast compiler: Load globals variables directly from property cells.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Merge Created 10 years, 10 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/macro-assembler-arm.h ('k') | src/compiler.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 1057
1058 1058
1059 void MacroAssembler::CompareInstanceType(Register map, 1059 void MacroAssembler::CompareInstanceType(Register map,
1060 Register type_reg, 1060 Register type_reg,
1061 InstanceType type) { 1061 InstanceType type) {
1062 ldrb(type_reg, FieldMemOperand(map, Map::kInstanceTypeOffset)); 1062 ldrb(type_reg, FieldMemOperand(map, Map::kInstanceTypeOffset));
1063 cmp(type_reg, Operand(type)); 1063 cmp(type_reg, Operand(type));
1064 } 1064 }
1065 1065
1066 1066
1067 void MacroAssembler::CheckMap(Register obj,
1068 Register scratch,
1069 Handle<Map> map,
1070 Label* fail,
1071 bool is_heap_object) {
1072 if (!is_heap_object) {
1073 BranchOnSmi(obj, fail);
1074 }
1075 ldr(scratch, FieldMemOperand(obj, HeapObject::kMapOffset));
1076 mov(ip, Operand(map));
1077 cmp(scratch, ip);
1078 b(ne, fail);
1079 }
1080
1081
1067 void MacroAssembler::TryGetFunctionPrototype(Register function, 1082 void MacroAssembler::TryGetFunctionPrototype(Register function,
1068 Register result, 1083 Register result,
1069 Register scratch, 1084 Register scratch,
1070 Label* miss) { 1085 Label* miss) {
1071 // Check that the receiver isn't a smi. 1086 // Check that the receiver isn't a smi.
1072 BranchOnSmi(function, miss); 1087 BranchOnSmi(function, miss);
1073 1088
1074 // Check that the function really is a function. Load map into result reg. 1089 // Check that the function really is a function. Load map into result reg.
1075 CompareObjectType(function, result, scratch, JS_FUNCTION_TYPE); 1090 CompareObjectType(function, result, scratch, JS_FUNCTION_TYPE);
1076 b(ne, miss); 1091 b(ne, miss);
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 } 1468 }
1454 1469
1455 1470
1456 void CodePatcher::Emit(Address addr) { 1471 void CodePatcher::Emit(Address addr) {
1457 masm()->emit(reinterpret_cast<Instr>(addr)); 1472 masm()->emit(reinterpret_cast<Instr>(addr));
1458 } 1473 }
1459 #endif // ENABLE_DEBUGGER_SUPPORT 1474 #endif // ENABLE_DEBUGGER_SUPPORT
1460 1475
1461 1476
1462 } } // namespace v8::internal 1477 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698