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

Side by Side Diff: src/heap.cc

Issue 6286078: Landing for Zaheer Ahmad. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 void Heap::CreateJSEntryStub() { 1934 void Heap::CreateJSEntryStub() {
1935 JSEntryStub stub; 1935 JSEntryStub stub;
1936 set_js_entry_code(*stub.GetCode()); 1936 set_js_entry_code(*stub.GetCode());
1937 } 1937 }
1938 1938
1939 1939
1940 void Heap::CreateJSConstructEntryStub() { 1940 void Heap::CreateJSConstructEntryStub() {
1941 JSConstructEntryStub stub; 1941 JSConstructEntryStub stub;
1942 set_js_construct_entry_code(*stub.GetCode()); 1942 set_js_construct_entry_code(*stub.GetCode());
1943 } 1943 }
1944 1944
Erik Corry 2011/02/04 09:55:55 Blank lines.
antonm 2011/02/04 12:59:45 Done.
1945 #if V8_TARGET_ARCH_ARM
1946 void Heap::CreateDirectCEntryStub() {
1947 DirectCEntryStub stub;
1948 set_direct_c_entry_code(*stub.GetCode());
1949 }
1950 #endif
1945 1951
Erik Corry 2011/02/04 09:55:55 Blank lines.
antonm 2011/02/04 12:59:45 Done.
1946 void Heap::CreateFixedStubs() { 1952 void Heap::CreateFixedStubs() {
1947 // Here we create roots for fixed stubs. They are needed at GC 1953 // Here we create roots for fixed stubs. They are needed at GC
1948 // for cooking and uncooking (check out frames.cc). 1954 // for cooking and uncooking (check out frames.cc).
1949 // The eliminates the need for doing dictionary lookup in the 1955 // The eliminates the need for doing dictionary lookup in the
1950 // stub cache for these stubs. 1956 // stub cache for these stubs.
1951 HandleScope scope; 1957 HandleScope scope;
1952 // gcc-4.4 has problem generating correct code of following snippet: 1958 // gcc-4.4 has problem generating correct code of following snippet:
1953 // { CEntryStub stub; 1959 // { CEntryStub stub;
1954 // c_entry_code_ = *stub.GetCode(); 1960 // c_entry_code_ = *stub.GetCode();
1955 // } 1961 // }
1956 // { DebuggerStatementStub stub; 1962 // { DebuggerStatementStub stub;
1957 // debugger_statement_code_ = *stub.GetCode(); 1963 // debugger_statement_code_ = *stub.GetCode();
1958 // } 1964 // }
1959 // To workaround the problem, make separate functions without inlining. 1965 // To workaround the problem, make separate functions without inlining.
1960 Heap::CreateCEntryStub(); 1966 Heap::CreateCEntryStub();
1961 Heap::CreateJSEntryStub(); 1967 Heap::CreateJSEntryStub();
1962 Heap::CreateJSConstructEntryStub(); 1968 Heap::CreateJSConstructEntryStub();
1963 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP 1969 #if V8_TARGET_ARCH_ARM && !V8_INTERPRETED_REGEXP
1964 Heap::CreateRegExpCEntryStub(); 1970 Heap::CreateRegExpCEntryStub();
1965 #endif 1971 #endif
1972 #if V8_TARGET_ARCH_ARM
1973 Heap::CreateDirectCEntryStub();
1974 #endif
1966 } 1975 }
1967 1976
1968 1977
1969 bool Heap::CreateInitialObjects() { 1978 bool Heap::CreateInitialObjects() {
1970 Object* obj; 1979 Object* obj;
1971 1980
1972 // The -0 value must be set before NumberFromDouble works. 1981 // The -0 value must be set before NumberFromDouble works.
1973 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED); 1982 { MaybeObject* maybe_obj = AllocateHeapNumber(-0.0, TENURED);
1974 if (!maybe_obj->ToObject(&obj)) return false; 1983 if (!maybe_obj->ToObject(&obj)) return false;
1975 } 1984 }
(...skipping 3601 matching lines...) Expand 10 before | Expand all | Expand 10 after
5577 void ExternalStringTable::TearDown() { 5586 void ExternalStringTable::TearDown() {
5578 new_space_strings_.Free(); 5587 new_space_strings_.Free();
5579 old_space_strings_.Free(); 5588 old_space_strings_.Free();
5580 } 5589 }
5581 5590
5582 5591
5583 List<Object*> ExternalStringTable::new_space_strings_; 5592 List<Object*> ExternalStringTable::new_space_strings_;
5584 List<Object*> ExternalStringTable::old_space_strings_; 5593 List<Object*> ExternalStringTable::old_space_strings_;
5585 5594
5586 } } // namespace v8::internal 5595 } } // namespace v8::internal
OLDNEW
« src/arm/macro-assembler-arm.cc ('K') | « src/heap.h ('k') | src/top.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698