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

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

Issue 39973003: Merge bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: again Created 7 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/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // Floating point value in the 32-bit integer range that are not exact integer 532 // Floating point value in the 32-bit integer range that are not exact integer
533 // won't be converted. 533 // won't be converted.
534 void LoadNumberAsInt32(Register object, 534 void LoadNumberAsInt32(Register object,
535 Register dst, 535 Register dst,
536 Register heap_number_map, 536 Register heap_number_map,
537 Register scratch, 537 Register scratch,
538 DwVfpRegister double_scratch0, 538 DwVfpRegister double_scratch0,
539 LowDwVfpRegister double_scratch1, 539 LowDwVfpRegister double_scratch1,
540 Label* not_int32); 540 Label* not_int32);
541 541
542 // Generates function and stub prologue code.
543 void Prologue(PrologueFrameMode frame_mode);
542 544
543 // Enter exit frame. 545 // Enter exit frame.
544 // stack_space - extra stack space, used for alignment before call to C. 546 // stack_space - extra stack space, used for alignment before call to C.
545 void EnterExitFrame(bool save_doubles, int stack_space = 0); 547 void EnterExitFrame(bool save_doubles, int stack_space = 0);
546 548
547 // Leave the current exit frame. Expects the return value in r0. 549 // Leave the current exit frame. Expects the return value in r0.
548 // Expect the number of values, pushed prior to the exit frame, to 550 // Expect the number of values, pushed prior to the exit frame, to
549 // remove in a register (or no_reg, if there is nothing to remove). 551 // remove in a register (or no_reg, if there is nothing to remove).
550 void LeaveExitFrame(bool save_doubles, 552 void LeaveExitFrame(bool save_doubles,
551 Register argument_count, 553 Register argument_count,
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 1383
1382 // Expects object in r0 and returns map with validated enum cache 1384 // Expects object in r0 and returns map with validated enum cache
1383 // in r0. Assumes that any other register can be used as a scratch. 1385 // in r0. Assumes that any other register can be used as a scratch.
1384 void CheckEnumCache(Register null_value, Label* call_runtime); 1386 void CheckEnumCache(Register null_value, Label* call_runtime);
1385 1387
1386 // AllocationMemento support. Arrays may have an associated 1388 // AllocationMemento support. Arrays may have an associated
1387 // AllocationMemento object that can be checked for in order to pretransition 1389 // AllocationMemento object that can be checked for in order to pretransition
1388 // to another type. 1390 // to another type.
1389 // On entry, receiver_reg should point to the array object. 1391 // On entry, receiver_reg should point to the array object.
1390 // scratch_reg gets clobbered. 1392 // scratch_reg gets clobbered.
1391 // If allocation info is present, condition flags are set to eq 1393 // If allocation info is present, condition flags are set to eq.
1392 void TestJSArrayForAllocationMemento(Register receiver_reg, 1394 void TestJSArrayForAllocationMemento(Register receiver_reg,
1393 Register scratch_reg); 1395 Register scratch_reg,
1396 Label* no_memento_found);
1397
1398 void JumpIfJSArrayHasAllocationMemento(Register receiver_reg,
1399 Register scratch_reg,
1400 Label* memento_found) {
1401 Label no_memento_found;
1402 TestJSArrayForAllocationMemento(receiver_reg, scratch_reg,
1403 &no_memento_found);
1404 b(eq, memento_found);
1405 bind(&no_memento_found);
1406 }
1394 1407
1395 private: 1408 private:
1396 void CallCFunctionHelper(Register function, 1409 void CallCFunctionHelper(Register function,
1397 int num_reg_arguments, 1410 int num_reg_arguments,
1398 int num_double_arguments); 1411 int num_double_arguments);
1399 1412
1400 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al); 1413 void Jump(intptr_t target, RelocInfo::Mode rmode, Condition cond = al);
1401 1414
1402 // Helper functions for generating invokes. 1415 // Helper functions for generating invokes.
1403 void InvokePrologue(const ParameterCount& expected, 1416 void InvokePrologue(const ParameterCount& expected,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1520 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1508 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1521 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1509 #else 1522 #else
1510 #define ACCESS_MASM(masm) masm-> 1523 #define ACCESS_MASM(masm) masm->
1511 #endif 1524 #endif
1512 1525
1513 1526
1514 } } // namespace v8::internal 1527 } } // namespace v8::internal
1515 1528
1516 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1529 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698